Commit 0babc371 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

utils.RunCmd: Test case with reset_env set and setting variables


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 6d4a1656
......@@ -239,6 +239,8 @@ class TestRunCmd(testutils.GanetiTestCase):
def testResetEnv(self):
"""Test environment reset functionality"""
self.failUnlessEqual(RunCmd(["env"], reset_env=True).stdout.strip(), "")
self.failUnlessEqual(RunCmd(["env"], reset_env=True,
env={"FOO": "bar",}).stdout.strip(), "FOO=bar")
class TestRunParts(unittest.TestCase):
......
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