Browse Source

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>
master
David Disseldorp 3 years ago committed by Harald Hoyer
parent
commit
86bba3d4d4
  1. 8
      test/Makefile.testdir

8
test/Makefile.testdir

@ -2,11 +2,11 @@ @@ -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

Loading…
Cancel
Save