From 44733335dd76b59e211e8397f008abdba79a3b5f Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 21 Aug 2008 13:34:15 -0400 Subject: 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 --- test/unittest/test_client.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/unittest') 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" -- cgit