diff options
author | Adrian Likins <alikins@redhat.com> | 2008-08-21 13:34:15 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-08-21 13:34:15 -0400 |
commit | 44733335dd76b59e211e8397f008abdba79a3b5f (patch) | |
tree | e23878d681379c735e683ec1e8f92e498f34df63 /test/unittest | |
parent | 4bd91c631f1d81daa416889b0521f95841a1a83a (diff) | |
download | func-44733335dd76b59e211e8397f008abdba79a3b5f.tar.gz func-44733335dd76b59e211e8397f008abdba79a3b5f.tar.xz func-44733335dd76b59e211e8397f008abdba79a3b5f.zip |
add support for specifying a set of enviroment variables to run
a command in.
also, add a unit test case
atm, the env variables specified completely replace the normal
enviroment
Diffstat (limited to 'test/unittest')
-rw-r--r-- | test/unittest/test_client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py index 4734093..d1b37a5 100644 --- a/test/unittest/test_client.py +++ b/test/unittest/test_client.py @@ -170,6 +170,11 @@ class TestCommand(BaseTest): assert result[self.th][1].split("-")[0] == "filesystem" + def test_env(self): + result = self.overlord.command.run("env", + {'BLIPPYFOO':'awesome'}) + self.assert_on_fault(result) + assert result[self.th][1].strip() == "BLIPPYFOO=awesome" class TestCopyfile(BaseTest): fn = "/tmp/func_test_file" |