Fix env_var_test to ignore XML_OUTPUT_FILE if already set

pull/724/head
Doug Greiman 9 years ago
parent 5db9cbbc23
commit 6991f422b6
  1. 2
      googletest/test/gtest_env_var_test.py

@ -84,6 +84,8 @@ class GTestEnvVarTest(gtest_test_utils.TestCase):
def testEnvVarAffectsFlag(self): def testEnvVarAffectsFlag(self):
"""Tests that environment variable should affect the corresponding flag.""" """Tests that environment variable should affect the corresponding flag."""
SetEnvVar('XML_OUTPUT_FILE', None)
TestFlag('break_on_failure', '1', '0') TestFlag('break_on_failure', '1', '0')
TestFlag('color', 'yes', 'auto') TestFlag('color', 'yes', 'auto')
TestFlag('filter', 'FooTest.Bar', '*') TestFlag('filter', 'FooTest.Bar', '*')

Loading…
Cancel
Save