Skip to content

Commit 86bba3d

Browse files
ddissharaldh
authored andcommitted
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 <ddiss@suse.de>
1 parent 1c3f79f commit 86bba3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Makefile.testdir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
all:
44
@$(MAKE) -s --no-print-directory -C ../.. all
5-
@V=$(V) basedir=../.. testdir=../ ./test.sh --all
5+
@V=$(V) basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --all
66
setup:
77
@$(MAKE) --no-print-directory -C ../.. all
8-
@basedir=../.. testdir=../ ./test.sh --setup
8+
@basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --setup
99
clean:
10-
@basedir=../.. testdir=../ ./test.sh --clean
10+
@basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --clean
1111
run:
12-
@basedir=../.. testdir=../ ./test.sh --run
12+
@basedir="$(realpath ../..)" testdir="$(realpath ../)" ./test.sh --run

0 commit comments

Comments
 (0)