[test-suite] RunSafely: Make sure to pass the absolute path to the input file
when running on remotely. git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@153056 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
23c535cb54
Коммит
6d22a12d9a
|
@ -138,10 +138,16 @@ if [ "x$RHOST" = x ] ; then
|
|||
--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
|
||||
|
|
Загрузка…
Ссылка в новой задаче