diff options
author | Andres Noetzli <noetzli@stanford.edu> | 2020-05-23 13:29:37 -0700 |
---|---|---|
committer | Andres Noetzli <noetzli@stanford.edu> | 2020-05-23 13:29:37 -0700 |
commit | f53f150fd9b9b6cde321abf5afd995e34db5bfc6 (patch) | |
tree | 1f36d2c4525f9b6547b5172eb107f5e22ed1bba4 | |
parent | 4fadb717d6e256768c22ad4eadb5ca9eae3afb1b (diff) |
[SMT-COMP] Redirect non-answers to /dev/nullsmtcomp2020starexec
Commit 00badd3a63a2fa568373d5c58553944b579d42bb changed our run script
to write output other than `sat`/`unsat` to a file if `$2` is passed to
it. However, it looks like StarExec does not pass that parameter to our
script despite the documentation claiming that it does [0]. This commit
makes our check more defensive by redirecting our unnecessary output to
`/dev/null` if `STAREXEC_WALLCLOCK_LIMIT` is set. I've done a quick test
run on StarExec and it looks like this does the trick.
[0]
https://wiki.uiowa.edu/display/stardev/User+Guide#UserGuide-SpecialVariables
-rwxr-xr-x | contrib/competitions/smt-comp/run-script-smtcomp-current | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/competitions/smt-comp/run-script-smtcomp-current b/contrib/competitions/smt-comp/run-script-smtcomp-current index bdc94b0bc..3ca8bd32b 100755 --- a/contrib/competitions/smt-comp/run-script-smtcomp-current +++ b/contrib/competitions/smt-comp/run-script-smtcomp-current @@ -7,6 +7,13 @@ bench="$1" # in the directory specified by $2 if it has been set (e.g. when running on # StarExec). out_file=/dev/stderr + +if [ -n "$STAREXEC_WALLCLOCK_LIMIT" ]; then + # If we are running on StarExec, don't print to `/dev/stderr/` even when $2 + # is not provided. + out_file="/dev/null" +fi + if [ -n "$2" ]; then out_file="$2/err.log" fi |