From: Sergey Matveev Date: Wed, 15 Sep 2021 20:15:40 +0000 (+0300) Subject: Limit TOP_DIR searching in tests X-Git-Tag: v1.14.0^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=commitdiff_plain;h=a884ab6ca01725f405e039884af260ef03a945f0 Limit TOP_DIR searching in tests Just for assurance to limit the .do-search scope. --- diff --git a/t/apenwarr/wrapper.rc b/t/apenwarr/wrapper.rc index 724dc67..7c68fee 100755 --- a/t/apenwarr/wrapper.rc +++ b/t/apenwarr/wrapper.rc @@ -6,6 +6,7 @@ testname=${testname%.t} testdir=`dirname $0`/apenwarr/$testname cd $testdir testdir=`pwd` +export REDO_TOP_DIR="$testdir" REDO_NO_PROGRESS=1 test_description="none" . $SHARNESS_TEST_SRCDIR/sharness.sh cd $testdir diff --git a/t/goredo-deps-after-cd.t b/t/goredo-deps-after-cd.t index bd25ae4..e0432e7 100755 --- a/t/goredo-deps-after-cd.t +++ b/t/goredo-deps-after-cd.t @@ -3,6 +3,7 @@ testname=`basename "$0"` test_description="Check that dependencies have correct relative path after cd" . $SHARNESS_TEST_SRCDIR/sharness.sh +export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 mkdir -p bin src cat > bin/default.do < default.html.do < foo.do cat > bar.do < bar.do echo redo-ifchange bar > foo.do diff --git a/t/redo-sh.tests/wrapper.rc b/t/redo-sh.tests/wrapper.rc index 092d588..e25226d 100755 --- a/t/redo-sh.tests/wrapper.rc +++ b/t/redo-sh.tests/wrapper.rc @@ -6,6 +6,7 @@ testname=${testname%.t} testdir=`dirname $0`/redo-sh.tests/$testname cd $testdir testdir=`pwd` +export REDO_TOP_DIR="$testdir" REDO_NO_PROGRESS=1 test_description="`sed -n '2,/^$/p' test | sed 's/# //'`" . $SHARNESS_TEST_SRCDIR/sharness.sh cd $testdir