From a354fd8175cfd08cec480fdd5da9034c26ea20a4 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 30 Aug 2015 22:18:23 -0400 Subject: [PATCH] sh test/run or sh ./test/run, neither should cause a spurious regression failure --- c/test/run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/c/test/run b/c/test/run index 840e8a382..ba449fcd2 100755 --- a/c/test/run +++ b/c/test/run @@ -19,7 +19,11 @@ # ================================================================ set -e -ourdir=`dirname $0` +verb=$0 +if [ "$verb" = "test/run" ]; then + verb=./test/run +fi +ourdir=`dirname $verb` mlr=$ourdir/../mlr indir=$ourdir/input expdir=$ourdir/expected