diff --git a/source3/script/tests/test_success.sh b/source3/script/tests/test_success.sh index fe63fb51a9f..7ba8ddbef59 100755 --- a/source3/script/tests/test_success.sh +++ b/source3/script/tests/test_success.sh @@ -4,7 +4,7 @@ # # Copyright (C) 2011 Michael Adam -incdir=`dirname $0`/../../../testprogs/blackbox +incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh failed=0 @@ -15,8 +15,7 @@ test_success() } testit "success" \ - test_success || \ - failed=`expr $failed + 1` + test_success || + failed=$(expr $failed + 1) testok $0 $failed -