diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-11-22 02:26:23 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2008-11-22 02:26:23 +0000 |
commit | 514265c415e072caf92fb4eed57aacdfea9964f1 (patch) | |
tree | e84cbd75742ebe5fe28f0811afdadc3d2a27e93e /test/gtest_xml_outfiles_test.py | |
parent | d4e57d12d49bae66811d1ac2249abc7004b580e6 (diff) | |
download | googletest-514265c415e072caf92fb4eed57aacdfea9964f1.tar.gz googletest-514265c415e072caf92fb4eed57aacdfea9964f1.tar.bz2 googletest-514265c415e072caf92fb4eed57aacdfea9964f1.zip |
Fixed two of the failing tests mentioned in issue 9
Diffstat (limited to 'test/gtest_xml_outfiles_test.py')
-rwxr-xr-x | test/gtest_xml_outfiles_test.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/gtest_xml_outfiles_test.py b/test/gtest_xml_outfiles_test.py index b83df775..d5d7266a 100755 --- a/test/gtest_xml_outfiles_test.py +++ b/test/gtest_xml_outfiles_test.py @@ -100,9 +100,10 @@ class GTestXMLOutFilesTest(gtest_xml_test_utils.GTestXMLTestCase): def _TestOutFile(self, test_name, expected_xml): gtest_prog_path = os.path.join(gtest_test_utils.GetBuildDir(), test_name) - command = "cd %s && %s --gtest_output=xml:%s &> /dev/null" % ( - tempfile.mkdtemp(), gtest_prog_path, self.output_dir_) - status = os.system(command) + command = "%s --gtest_output=xml:%s" % (gtest_prog_path, self.output_dir_) + status = gtest_test_utils.RunCommandSuppressOutput( + command, + working_dir=tempfile.mkdtemp()) self.assertEquals(0, gtest_test_utils.GetExitStatus(status)) # TODO(wan@google.com): libtool causes the built test binary to be |