Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
a3f0a6eb
Commit
a3f0a6eb
authored
Sep 02, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1625 from ipfs/check-peerid
t0020: simplify peerid check
parents
5ff766be
dc68ae76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test/sharness/t0020-init.sh
test/sharness/t0020-init.sh
+6
-6
No files found.
test/sharness/t0020-init.sh
View file @
a3f0a6eb
...
...
@@ -58,11 +58,13 @@ test_expect_success "ipfs config succeeds" '
test_cmp expected_config actual_config
'
test_check_peerid
()
{
test
$(
echo
"
$1
"
|
tr
-dC
"[:alnum:]"
|
wc
-c
|
tr
-d
" "
)
=
"46"
}
test_expect_success
"ipfs peer id looks good"
'
PEERID=$(ipfs config Identity.PeerID) &&
echo $PEERID | tr -dC "[:alnum:]" | wc -c | tr -d " " >actual_peerid &&
echo "46" >expected_peerid &&
test_cmp expected_peerid actual_peerid
test_check_peerid "$PEERID"
'
test_expect_success
"ipfs init output looks good"
'
...
...
@@ -90,9 +92,7 @@ test_expect_success "'ipfs init --empty-repo' succeeds" '
test_expect_success
"ipfs peer id looks good"
'
PEERID=$(ipfs config Identity.PeerID) &&
echo $PEERID | tr -dC "[:alnum:]" | wc -c | tr -d " " >actual_peerid &&
echo "46" >expected_peerid &&
test_cmp expected_peerid actual_peerid
test_check_peerid "$PEERID"
'
test_expect_success
"'ipfs init --empty-repo' output looks good"
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment