X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tests%2Fcli%2Ftest_trace_copy;h=e8c9b2c86210a391089953e89733a240ed341d34;hb=75e396f6b20bdf52c76a3c7312e7fb815ac1e5e9;hp=628812c6398bb39ee4d556ac69eee13699d9f8e5;hpb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;p=babeltrace.git diff --git a/tests/cli/test_trace_copy b/tests/cli/test_trace_copy index 628812c6..e8c9b2c8 100755 --- a/tests/cli/test_trace_copy +++ b/tests/cli/test_trace_copy @@ -7,7 +7,7 @@ SH_TAP=1 -if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then +if [ -n "${BT_TESTS_SRCDIR:-}" ]; then UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" else UTILSSH="$(dirname "$0")/../utils/utils.sh" @@ -22,8 +22,8 @@ clean_tmp() { SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/succeed/"*) -# -2 because there is an empty trace that we skip -NUM_TESTS=$((${#SUCCESS_TRACES[@]} * 3 - 2)) +# -4 because there are two empty traces that we skip +NUM_TESTS=$((${#SUCCESS_TRACES[@]} * 3 - 4)) plan_tests $NUM_TESTS