test: Fix testenv-root lingering in build dir

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-26 15:35:07 +01:00
1 parent 6b7ae50fbb
commit 2f439194e5
12 files changed
+80 -125

No files matched your search

+3 -10
View File
@@ -2,14 +2,7 @@
set -eu
if [ ! -d test-root ]; then
mkdir -p test-root/bin
# shellcheck disable=SC2154
cp "${srcdir}/test-root/bin/chrootsetup.sh" test-root/bin
cp "${srcdir}/test-root/busybox-x86_64.md5" test-root/
cp "${srcdir}/test-root/Makefile" test-root/
fi
# shellcheck disable=SC2154
make -C "$top_builddir" DESTDIR="$(pwd)/test-root/" install
FINITBIN="$(pwd)/$top_builddir/src/finit" make -C test-root/
make -C "$top_builddir" DESTDIR="$TESTENV_ROOT" install
# shellcheck disable=SC2154
FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$TESTENV_ROOT" make -f "$srcdir/testenv-root.mk"