From f9ae3309783470c2e6d136fcea23c98eba494199 Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Wed, 8 Apr 2020 23:29:45 +0200 Subject: [PATCH] Harden test - no -z in busybox --- test/sharness/t0054-dag-car-import-export.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sharness/t0054-dag-car-import-export.sh b/test/sharness/t0054-dag-car-import-export.sh index 4bd37f19c..1f6016236 100755 --- a/test/sharness/t0054-dag-car-import-export.sh +++ b/test/sharness/t0054-dag-car-import-export.sh @@ -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() {