mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 14:28:02 +08:00
t0062: add missing && in test_client*()
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
parent
cbeff099a2
commit
3562e72d8e
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user