[llvm-commits] [test-suite] r153144 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Tue Mar 20 15:17:52 PDT 2012
Author: ddunbar
Date: Tue Mar 20 17:17:52 2012
New Revision: 153144
URL: http://llvm.org/viewvc/llvm-project?rev=153144&view=rev
Log:
[test-suite] Simplify RunSafely.
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=153144&r1=153143&r2=153144&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Tue Mar 20 17:17:52 2012
@@ -139,11 +139,7 @@
$COMMAND
else
# Get the absolute path to INFILE.
- if [ ! -z "$(echo $INFILE | sed -e 's#[^/]##g')" ]; then
- ABSINFILE=$INFILE
- else
- ABSINFILE=$PWD/$INFILE
- fi
+ ABSINFILE=$(cd $(dirname $INFILE); pwd)/$(basename $INFILE)
rm -f "$PWD/${PROG}.command"
rm -f "$PWD/${PROG}.remote"
rm -f "$PWD/${OUTFILE}.remote.time"
More information about the llvm-commits
mailing list