aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rwxr-xr-xvalidation/test-suite14
1 files changed, 6 insertions, 8 deletions
diff --git a/validation/test-suite b/validation/test-suite
index 5655ac40..3abf69d4 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -2,17 +2,11 @@
#set -x
-## allow flags from environment
-flags="$SPARSE_TEST_FLAGS"
-if [ ! -z "$flags" ]; then
- unset SPARSE_TEST_FLAGS
- exec "$0" $flags "$@"
-fi
-
cd $(dirname "$0")
default_path=".."
default_cmd="sparse \$file"
+default_args="$SPARSE_TEST_ARGS"
tests_list=""
prog_name=`basename $0`
@@ -327,7 +321,7 @@ do_test()
shift
# launch the test command and
# grab the actual output & exit value
- eval $pre_cmd $default_path/$base_cmd "$@" \
+ eval $pre_cmd $default_path/$base_cmd $default_args "$@" \
1> $file.output.got 2> $file.error.got
actual_exit_value=$?
@@ -513,6 +507,10 @@ _EOF
return 0
}
+## allow flags from environment
+set -- $SPARSE_TEST_FLAGS "$@"
+
+## process the flags
while [ "$#" -gt "0" ]; do
case "$1" in
-a|--abort)