Commit 0fd53e07 authored by Ivan Shapovalov's avatar Ivan Shapovalov Committed by Pavel Emelyanov

zdtm: zdtm.py: reset $PATH to canonical in ns tests

This is to deal with distros like Arch which take /usr merge to the
extreme and set their $PATH to something like /usr/local/bin:/usr/bin
(no /usr/sbin, no /{s,}bin), which breaks our rather inflexible nsroot
population logic.
Signed-off-by: 's avatarIvan Shapovalov <intelfx@intelfx.name>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 98923551
...@@ -344,6 +344,7 @@ class zdtm_test: ...@@ -344,6 +344,7 @@ class zdtm_test:
if self.__flavor.ns: if self.__flavor.ns:
env['ZDTM_NEWNS'] = "1" env['ZDTM_NEWNS'] = "1"
env['ZDTM_ROOT'] = self.__flavor.root env['ZDTM_ROOT'] = self.__flavor.root
env['PATH'] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
if self.__flavor.uns: if self.__flavor.uns:
env['ZDTM_USERNS'] = "1" env['ZDTM_USERNS'] = "1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment