]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci(test): export basedir and testdir as absolute paths
authorDavid Disseldorp <ddiss@suse.de>
Wed, 3 Mar 2021 18:09:07 +0000 (19:09 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 24 Nov 2021 10:14:54 +0000 (11:14 +0100)
Individual test scripts may change working directory, so relative paths
should be avoided.

Signed-off-by: David Disseldorp <ddiss@suse.de>
test/Makefile.testdir

index 33c2a9a4c139db6ac812f05d18cabc5fb1c3d159..5757d0ce8894764aca946a41219e19af44b4616f 100644 (file)
@@ -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