diff options
Diffstat (limited to 'source/1.0/bin')
-rwxr-xr-x | source/1.0/bin/gen_test_results.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/1.0/bin/gen_test_results.sh b/source/1.0/bin/gen_test_results.sh index eee4dde..ecfcd4e 100755 --- a/source/1.0/bin/gen_test_results.sh +++ b/source/1.0/bin/gen_test_results.sh @@ -54,7 +54,7 @@ output=`shlib_relToAbsPath "${output}"` # checks [ -n "${FLAGS_suite}" ] || die 'suite flag missing' -if [ ! ${FLAGS_dry_run} -a -f "${output}" ]; then +if [ ${FLAGS_dry_run} -eq ${FLAGS_FALSE} -a -f "${output}" ]; then if [ ${FLAGS_force} -eq ${FLAGS_TRUE} ]; then rm -f "${output}" else @@ -62,17 +62,17 @@ if [ ! ${FLAGS_dry_run} -a -f "${output}" ]; then exit ${FLAGS_ERROR} fi fi -if [ ! ${FLAGS_dry_run} ]; then +if [ ${FLAGS_dry_run} -eq ${FLAGS_FALSE} ]; then touch "${output}" 2>/dev/null || die "unable to write to '${output}'" fi # run tests ( cd "${SRC_DIR}"; - if [ ${FLAGS_dry_run} ]; then - ./${FLAGS_suite} - else + if [ ${FLAGS_dry_run} -eq ${FLAGS_FALSE} ]; then ./${FLAGS_suite} |tee "${output}" + else + ./${FLAGS_suite} fi ) |