t0062: add missing && in test_client*()

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder 2015-08-29 22:30:37 +02:00
parent cbeff099a2
commit 3562e72d8e

View File

@ -19,14 +19,14 @@ test_expect_success "config setup" '
'
test_client() {
printf "$peerid" >expected
ipfs "$@" id -f="<id>" >actual
printf "$peerid" >expected &&
ipfs "$@" id -f="<id>" >actual &&
test_cmp expected actual
}
test_client_must_fail() {
echo "Error: api not running" >expected_err
test_must_fail ipfs "$@" id -f="<id>" >actual 2>actual_err
echo "Error: api not running" >expected_err &&
test_must_fail ipfs "$@" id -f="<id>" >actual 2>actual_err &&
test_cmp expected_err actual_err
}