[llvm-commits] [test-suite] r153056 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Mon Mar 19 15:00:17 PDT 2012
Author: ddunbar
Date: Mon Mar 19 17:00:15 2012
New Revision: 153056
URL: http://llvm.org/viewvc/llvm-project?rev=153056&view=rev
Log:
[test-suite] RunSafely: Make sure to pass the absolute path to the input file
when running on remotely.
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=153056&r1=153055&r2=153056&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Mon Mar 19 17:00:15 2012
@@ -138,10 +138,16 @@
--redirect-output $OUTFILE \
$COMMAND
else
+ # Get the absolute path to INFILE.
+ if ( grep '/' $INFILE > /dev/null ); then
+ ABSINFILE=$INFILE
+ else
+ ABSINFILE=$PWD/$INFILE
+ fi
rm -f "$PWD/${PROG}.command"
rm -f "$PWD/${PROG}.remote"
rm -f "$PWD/${OUTFILE}.remote.time"
- echo "$TIMEITCMD --summary $PWD/$OUTFILE.remote.time --redirect-input $INFILE --redirect-output $PWD/${OUTFILE}.remote $COMMAND" > "$PWD/${PROG}.command"
+ echo "$TIMEITCMD --summary $PWD/$OUTFILE.remote.time --redirect-input $ABSINFILE --redirect-output $PWD/${OUTFILE}.remote $COMMAND" > "$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