We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1de2337 commit 198a733Copy full SHA for 198a733
tools/sync/test/test_command.py
@@ -52,6 +52,13 @@ def test_work_dir(self):
52
cmd.execute()
53
self.assertEqual(orig_cwd, os.getcwd())
54
55
+ @unittest.skipUnless(os.name.startswith("posix"), "requires Unix")
56
+ def test_env(self):
57
+ cmd = Command(['/usr/bin/env'],
58
+ env_vars={'FOO': 'BAR'})
59
+ cmd.execute()
60
+ self.assertTrue("FOO=BAR\n" in cmd.getoutput())
61
+
62
@unittest.skipUnless(os.name.startswith("posix"), "requires Unix")
63
def test_retcode(self):
64
cmd = Command(["/bin/false"])
0 commit comments