Only the test file name is ever passed.
Reindent while touching many existing lines.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb_test_run ()
{
- local name="$1" ; shift
-
- [ -n "$1" ] || set -- "$name"
+ local f="$1"
- $no_header || ctdb_test_begin "$name"
+ $no_header || ctdb_test_begin "$f"
- local status=0
- if [ -x "$1" ] ; then
- timeout "$test_time_limit" "$@" || status=$?
- else
- echo "TEST IS NOT EXECUTABLE"
- status=1
- fi
+ local status=0
+ if [ -x "$f" ] ; then
+ timeout "$test_time_limit" "$f" || status=$?
+ else
+ echo "TEST IS NOT EXECUTABLE"
+ status=1
+ fi
- $no_header || ctdb_test_end "$name" "$status" "$*"
+ $no_header || ctdb_test_end "$f" "$status"
- return $status
+ return $status
}
######################################################################