mirror of
https://github.com/troglobit/finit.git
synced 2026-11-28 20:58:24 +00:00
test: Reset PS env vars in test environment
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
407c524088
commit
b73998d7c6
2 files changed
+11
-1
No files matched your search
@@ -17,6 +17,11 @@ nsenter=$(which nsenter)
|
|||||||
chroot=$(which chroot)
|
chroot=$(which chroot)
|
||||||
|
|
||||||
export PATH=/sbin:/bin
|
export PATH=/sbin:/bin
|
||||||
|
export PS1='\w \$ '
|
||||||
|
export PS2='> '
|
||||||
|
export PS3='#? '
|
||||||
|
export PS4='+ '
|
||||||
|
|
||||||
"$nsenter" \
|
"$nsenter" \
|
||||||
--preserve-credentials \
|
--preserve-credentials \
|
||||||
--user \
|
--user \
|
||||||
|
|||||||
@@ -10,9 +10,14 @@ TESTS_ROOT="$(pwd)/${TEST_DIR}/test_root"
|
|||||||
unshare=$(which unshare)
|
unshare=$(which unshare)
|
||||||
chroot=$(which chroot)
|
chroot=$(which chroot)
|
||||||
|
|
||||||
|
export PATH=/sbin:/bin
|
||||||
|
export PS1='\w \$ '
|
||||||
|
export PS2='> '
|
||||||
|
export PS3='#? '
|
||||||
|
export PS4='+ '
|
||||||
|
|
||||||
# Not supported by Busybox unshare:
|
# Not supported by Busybox unshare:
|
||||||
# --cgroup --time
|
# --cgroup --time
|
||||||
export PATH=/sbin:/bin
|
|
||||||
exec "$unshare" \
|
exec "$unshare" \
|
||||||
--user --map-root-user \
|
--user --map-root-user \
|
||||||
--fork --pid --mount-proc \
|
--fork --pid --mount-proc \
|
||||||
|
|||||||
Reference in new issue
Block a user