Harden test - no -z in busybox

This commit is contained in:
Peter Rabbitson 2020-04-08 23:29:45 +02:00 committed by Steven Allen
parent fbe40883e6
commit f9ae330978

View File

@ -16,10 +16,10 @@ reset_blockstore() {
ipfsi $1 repo gc &>/dev/null
test_expect_success "pinlist empty" '
test -z "$( ipfsi $1 pin ls )"
[ "$( ipfsi $1 pin ls )" = "" ]
'
test_expect_success "nothing left to gc" '
test -z "$( ipfsi $1 repo gc )"
[ "$( ipfsi $1 repo gc )" = "" ]
'
}
@ -33,8 +33,8 @@ do_import() {
ipfsi $node dag import "$@"
rm spin.gc
wait $gc1_pid
wait $gc2_pid
sleep 3
kill $gc1_pid $gc2_pid
}
run_online_imp_exp_tests() {