From 3bfc0a04d8bcef105e7224256acc168e33998e81 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sun, 17 Apr 2011 17:40:05 +0200 Subject: [PATCH] Avoid runtest warnings with GNU sed. OS X (BSD) sed accepts -i without a string too, but apparently only if it comes _before_ the -e argument. --- tests/runtest | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/runtest b/tests/runtest index 041be918..dc4699ee 100755 --- a/tests/runtest +++ b/tests/runtest @@ -23,14 +23,14 @@ BASEPATH=`pwd` cd dstress # remove excessive tests -sed -e 's/torture-//g' -i '' Makefile +sed -i -e 's/torture-//g' Makefile # make sure only .d files in 'run' tests are run -sed -e 's/find run -type f |/find run -type f -name "*\\\\.d" |/' -i '' Makefile -sed -e 's/find norun -type f |/find norun -type f -name "*\\\\.d" |/' -i '' Makefile +sed -i -e 's/find run -type f |/find run -type f -name "*\\\\.d" |/' Makefile +sed -i -e 's/find norun -type f |/find norun -type f -name "*\\\\.d" |/' Makefile # impose more conservative constraints (10s and 256 MB) -sed -e 's/crashRun 30 1000/crashRun 10 256/' -i '' dstress.c +sed -i -e 's/crashRun 30 1000/crashRun 10 256/' dstress.c echo echo "Running new test and storing result in $TARGETFILE ..."