From: David Disseldorp Date: Wed, 3 Mar 2021 18:09:07 +0000 (+0100) Subject: ci(test): export basedir and testdir as absolute paths X-Git-Tag: 056~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bba3d4d472c06427a6f7d1062ba25aaaac52ad;p=thirdparty%2Fdracut.git ci(test): export basedir and testdir as absolute paths Individual test scripts may change working directory, so relative paths should be avoided. Signed-off-by: David Disseldorp --- diff --git a/test/Makefile.testdir b/test/Makefile.testdir index 33c2a9a4c..5757d0ce8 100644 --- a/test/Makefile.testdir +++ b/test/Makefile.testdir @@ -2,11 +2,11 @@ all: @$(MAKE) -s --no-print-directory -C ../.. all - @V=$(V) basedir=../.. testdir=../ ./test.sh --all + @V=$(V) basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --all setup: @$(MAKE) --no-print-directory -C ../.. all - @basedir=../.. testdir=../ ./test.sh --setup + @basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --setup clean: - @basedir=../.. testdir=../ ./test.sh --clean + @basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --clean run: - @basedir=../.. testdir=../ ./test.sh --run + @basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --run