diff options
author | kate.ward <kate.ward@forestent.com> | 2013-01-05 14:11:44 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2013-01-05 14:11:44 +0000 |
commit | f499750aad5d638ca7d551d807daebe3e09fd360 (patch) | |
tree | 7fcc022f572fd0266c60477c68b98bbd12600116 /source/1.0/bin/gen_test_results.sh | |
parent | b075920c3109938f9b4a6ec8715031fcc9ee74f6 (diff) | |
download | shflags-f499750aad5d638ca7d551d807daebe3e09fd360.tar.gz |
fixed logic errors preventing output from being written
Diffstat (limited to 'source/1.0/bin/gen_test_results.sh')
-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 ) |