@cryptotaxi247 / kubo / commits / 3562e72d8

t0062: add missing && in test_client*()

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Aug 29, 2015 at 22:30 UTC 3562e72d8eb09fc337d583f5936e7782cf8519c2
1 file changed +4 -4
test/sharness/t0062-daemon-api.sh
+4 -4
@@ -19,14 +19,14 @@ test_expect_success "config setup" '
19 '
20
21 test_client() {
22 - printf "$peerid" >expected
23 - ipfs "$@" id -f="<id>" >actual
22 + printf "$peerid" >expected &&
23 + ipfs "$@" id -f="<id>" >actual &&
24 test_cmp expected actual
25 }
26
27 test_client_must_fail() {
28 - echo "Error: api not running" >expected_err
29 - test_must_fail ipfs "$@" id -f="<id>" >actual 2>actual_err
28 + echo "Error: api not running" >expected_err &&
29 + test_must_fail ipfs "$@" id -f="<id>" >actual 2>actual_err &&
30 test_cmp expected_err actual_err
31 }
32