[llvm-commits] [test-suite] r93517 - /test-suite/trunk/RunSafely.sh
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jan 15 10:07:31 PST 2010
Author: stoklund
Date: Fri Jan 15 12:07:31 2010
New Revision: 93517
URL: http://llvm.org/viewvc/llvm-project?rev=93517&view=rev
Log:
Properly transfer the exit code when running tests remotely.
The $? exit code was getting expanded on the local host.
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=93517&r1=93516&r2=93517&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Fri Jan 15 12:07:31 2010
@@ -145,7 +145,7 @@
rm -f "$PWD/${PROG}.command"
rm -f "$PWD/${PROG}.remote"
rm -f "$PWD/${PROG}.remote.time"
- echo "$ULIMITCMD cd $PWD; (time -p ($COMMAND > $PWD/${OUTFILE}.remote 2>&1 < $INFILE;); echo exit $?) > $PWD/${OUTFILE}.remote.time 2>&1" > "$PWD/${PROG}.command"
+ echo "$ULIMITCMD cd $PWD; (time -p ($COMMAND > $PWD/${OUTFILE}.remote 2>&1 < $INFILE;); echo exit \$?) > $PWD/${OUTFILE}.remote.time 2>&1" > "$PWD/${PROG}.command"
chmod +x "$PWD/${PROG}.command"
( $RCLIENT -l $RUSER $RHOST $RPORT "ls $PWD/${PROG}.command" ) > /dev/null 2>&1
More information about the llvm-commits
mailing list