This allows more variables to be set in this function because they are
no longer in a sub-shell.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
local status=0
if [ -x "$f" ] ; then
- timeout "$test_time_limit" "$f" || status=$?
+ timeout "$test_time_limit" "$f" | show_progress
+ status=$?
else
echo "TEST IS NOT EXECUTABLE"
status=1
tests_total=$((tests_total + 1))
- ctdb_test_run "$f" | show_progress
+ ctdb_test_run "$f"
status=$?
if [ $status -eq 0 ] ; then
tests_passed=$((tests_passed + 1))