提交 66e9754e 编写于 作者: A Amador Pahim 提交者: GitHub

Merge pull request #1482 from ldoktor/unittests

selftests: Use LC_ALL=C in tests which parse output
......@@ -418,7 +418,8 @@ class OutputPluginTest(unittest.TestCase):
def test_broken_pipe(self):
os.chdir(basedir)
cmd_line = "(./scripts/avocado run --help | whacky-unknown-command)"
result = process.run(cmd_line, shell=True, ignore_status=True)
result = process.run(cmd_line, shell=True, ignore_status=True,
env={"LC_ALL": "C"})
expected_rc = 127
self.assertEqual(result.exit_status, expected_rc,
("avocado run to broken pipe did not return "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册