[test-suite] r259906 - RunSafely: Place .command file into directory of OUTFILE even if -d is specified

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 5 11:30:02 PST 2016


Author: matze
Date: Fri Feb  5 13:30:02 2016
New Revision: 259906

URL: http://llvm.org/viewvc/llvm-project?rev=259906&view=rev
Log:
RunSafely: Place .command file into directory of OUTFILE even if -d is specified

Note: This does not affect the Makefile based test-suite in any way as
the RunSafely -d option is only used by the
External/SPEC/**/CMakeLists.txt files.

Modified:
    test-suite/trunk/RunSafely.sh

Modified: test-suite/trunk/RunSafely.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/RunSafely.sh?rev=259906&r1=259905&r2=259906&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Fri Feb  5 13:30:02 2016
@@ -69,8 +69,9 @@ NEW_MODE=0
 STDOUT_FILE=""
 STDERR_FILE=""
 PWD=`pwd`
+WORKDIR="$PWD"
 if [ $1 = "-d" ]; then
-  PWD="$2"
+  WORKDIR="$2"
   shift 2
 fi
 if [ $1 = "-r" ]; then
@@ -176,7 +177,7 @@ TIMEITFLAGS="$TIMEITFLAGS --limit-file-s
 # Set the virtual memory limit at 800MB.
 TIMEITFLAGS="$TIMEITFLAGS --limit-rss-size 838860800"
 
-TIMEITFLAGS="$TIMEITFLAGS --timeout $TIMELIMIT --chdir $PWD"
+TIMEITFLAGS="$TIMEITFLAGS --timeout $TIMELIMIT --chdir $WORKDIR"
 TIMEITFLAGS="$TIMEITFLAGS --redirect-input ${INFILE}"
 TIMEITFLAGS="$TIMEITFLAGS --summary ${OUTFILE}.time${REMOTE_SUFFIX}"
 if [ "$NEW_MODE" = "0" ]; then




More information about the llvm-commits mailing list