From 86bba3d4d472c06427a6f7d1062ba25aaaac52ad Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Wed, 3 Mar 2021 19:09:07 +0100 Subject: [PATCH] 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 --- test/Makefile.testdir | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Makefile.testdir b/test/Makefile.testdir index 33c2a9a4..5757d0ce 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