try to fix travis on BSDs again
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
Jakub Sztandera committed
Sep 28, 2016 at 13:57 UTC
daf212a65e76d8791a7ebd0055df25ade2a07965
1 file changed
+4
-4
test/sharness/t0021-config.sh
+4
-4
@@ -74,8 +74,8 @@ test_config_cmd() {
74
75
test_expect_success "setup for config replace test" '
76
cp "$IPFS_PATH/config" newconfig.json &&
77
- </dev/null sed -e /PrivKey/d -e s/10GB/11GB/ -i newconfig.json &&
78
- </dev/null sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i newconfig.json
77
+ </dev/null sed -e /PrivKey/d -e s/10GB/11GB/ -i"~" newconfig.json &&
78
+ </dev/null sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i"~" newconfig.json
79
'
80
81
test_expect_success "run 'ipfs config replace'" '
@@ -84,7 +84,7 @@ test_config_cmd() {
84
85
test_expect_success "check resulting config after 'ipfs config replace'" '
86
sed -e /PrivKey/d "$IPFS_PATH/config" > replconfig.json &&
87
- sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i replconfig.json &&
87
+ sed -e '"'"'/PeerID/ { s/,$// } '"'"' -i"~" replconfig.json &&
88
test_cmp replconfig.json newconfig.json
89
'
90
@@ -109,7 +109,7 @@ test_config_cmd() {
109
'
110
111
test_expect_success "lower cased PrivKey" '
112
- sed -i -e '\''s/PrivKey/privkey/'\'' "$IPFS_PATH/config" &&
112
+ sed -i"~" -e '\''s/PrivKey/privkey/'\'' "$IPFS_PATH/config" &&
113
test_expect_code 1 ipfs config Identity.privkey 2> ident_out
114
'
115