mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
test: Only mess with PATH inside test environment
This commit is contained in:
1 parent
3ebac3dece
commit
70964ccb35
4 files changed
+11
-2
No files matched your search
+2
-2
@@ -14,12 +14,12 @@ if [ ! -f "$srcdir"/../config.status ]; then
|
||||
cp "${srcdir}/test-root/Makefile" test-root/
|
||||
make -C test-root/
|
||||
config_h='./config.h'
|
||||
echo "export PATH=/bin:/sbin" > test.env
|
||||
echo "export TESTENV_PATH=/bin:/sbin" > test.env
|
||||
else
|
||||
make -C ../ DESTDIR="$(pwd)/test-root/" install
|
||||
FINITBIN=../../src/finit make -C test-root/
|
||||
config_h='../config.h'
|
||||
echo "export PATH=/bin:/sbin:$PREFIX/sbin:$PREFIX/bin" > test.env
|
||||
echo "export TESTENV_PATH=/bin:/sbin:$PREFIX/sbin:$PREFIX/bin" > test.env
|
||||
fi
|
||||
|
||||
echo "export FINIT_CONF=$(grep FINIT_CONF $config_h | cut -d' ' -f3 | cut -d'"' -f2)" >> test.env
|
||||
|
||||
Reference in new issue
Block a user