From 6991f422b65acd1fe9212cfd6ca2153e9757ad5d Mon Sep 17 00:00:00 2001 From: Doug Greiman Date: Tue, 1 Mar 2016 17:44:02 -0800 Subject: Fix env_var_test to ignore XML_OUTPUT_FILE if already set --- googletest/test/gtest_env_var_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googletest/test/gtest_env_var_test.py b/googletest/test/gtest_env_var_test.py index 81b5966..650b546 100755 --- a/googletest/test/gtest_env_var_test.py +++ b/googletest/test/gtest_env_var_test.py @@ -84,6 +84,8 @@ class GTestEnvVarTest(gtest_test_utils.TestCase): def testEnvVarAffectsFlag(self): """Tests that environment variable should affect the corresponding flag.""" + SetEnvVar('XML_OUTPUT_FILE', None) + TestFlag('break_on_failure', '1', '0') TestFlag('color', 'yes', 'auto') TestFlag('filter', 'FooTest.Bar', '*') -- cgit v0.12