diff options
-rwxr-xr-x | tests/convert-tests.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 064540f1..0e025f99 100755 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -22,18 +22,19 @@ export TEST_DEV rm -f $RESULTS run_one_test() { + local testdir local testname - testname="$1" + testdir="$1" + testname=$(basename "$testdir") echo " [TEST/conv] $testname" - cd $testname + cd "$testdir" echo "=== Entering $testname" >> $RESULTS if [ -x test.sh ]; then - # Difference convert test case needs different tools to restore - # and check image, so only support custom test scripts + # Only support custom test scripts ./test.sh if [ $? -ne 0 ]; then - _fail "test failed for case $(basename $testname)" + _fail "test failed for case $testname" fi else _fail "custom test script not found" |