Skip to content

Commit

Permalink
test: attempt to fix sed on travis
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Sep 8, 2016
1 parent a680b1b commit 25a035f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sharness/t0021-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ test_config_cmd() {

test_expect_success "setup for config replace test" '
cp "$IPFS_PATH/config" newconfig.json &&
sed -i -e /PrivKey/d -e s/10GB/11GB/ newconfig.json &&
sed -i '"'"'/PeerID/ { s/,$// } '"'"' newconfig.json
sed -e /PrivKey/d -e s/10GB/11GB/ -i newconfig.json &&
sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i newconfig.json
'

test_expect_success "run 'ipfs config replace'" '
Expand All @@ -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 -i -e'"'"'/PeerID/ { s/,$// } '"'"' replconfig.json &&
sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i replconfig.json &&
test_cmp replconfig.json newconfig.json
'

Expand Down

0 comments on commit 25a035f

Please sign in to comment.