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
daf212a6
Unverified
Commit
daf212a6
authored
Sep 28, 2016
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix travis on BSDs again
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
92d1d65f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/sharness/t0021-config.sh
test/sharness/t0021-config.sh
+4
-4
No files found.
test/sharness/t0021-config.sh
View file @
daf212a6
...
...
@@ -74,8 +74,8 @@ test_config_cmd() {
test_expect_success
"setup for config replace test"
'
cp "$IPFS_PATH/config" newconfig.json &&
</dev/null sed -e /PrivKey/d -e s/10GB/11GB/ -i newconfig.json &&
</dev/null sed -e '
"'"
'/PeerID/ { s/,$// } '
"'"
' -i newconfig.json
</dev/null sed -e /PrivKey/d -e s/10GB/11GB/ -i
"~"
newconfig.json &&
</dev/null sed -e '
"'"
'/PeerID/ { s/,$// } '
"'"
' -i
"~"
newconfig.json
'
test_expect_success
"run 'ipfs config replace'"
'
...
...
@@ -84,7 +84,7 @@ test_config_cmd() {
test_expect_success
"check resulting config after 'ipfs config replace'"
'
sed -e /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
sed -e '
"'"
'/PeerID/ { s/,$// } '
"'"
' -i replconfig.json &&
sed -e '
"'"
'/PeerID/ { s/,$// } '
"'"
' -i
"~"
replconfig.json &&
test_cmp replconfig.json newconfig.json
'
...
...
@@ -109,7 +109,7 @@ test_config_cmd() {
'
test_expect_success
"lower cased PrivKey"
'
sed -i -e '
\'
's/PrivKey/privkey/'
\'
' "$IPFS_PATH/config" &&
sed -i
"~"
-e '
\'
's/PrivKey/privkey/'
\'
' "$IPFS_PATH/config" &&
test_expect_code 1 ipfs config Identity.privkey 2> ident_out
'
...
...
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