summaryrefslogtreecommitdiff
path: root/share/python/template/scenarios.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/python/template/scenarios.py')
-rw-r--r--share/python/template/scenarios.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/python/template/scenarios.py b/share/python/template/scenarios.py
index 96dcc69..b215133 100644
--- a/share/python/template/scenarios.py
+++ b/share/python/template/scenarios.py
@@ -83,15 +83,13 @@ class Scenario:
def _set_environment_variables_to(self, scendir, extra_env):
log_value = globals()["log_value"]
- minimal = {
- "PATH": "/bin:/usr/bin",
+ overrides = {
"SHELL": "/bin/sh",
"HOME": scendir,
"TMPDIR": scendir,
}
- os.environ.clear()
- os.environ.update(minimal)
+ os.environ.update(overrides)
os.environ.update(extra_env)
if not self._logged_env:
self._logged_env = True