googletest-failfast-unittest.py (googletest-release-1.11.0) | : | googletest-failfast-unittest.py (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
after a test failure via the GTEST_FAIL_FAST environment variable or the | after a test failure via the GTEST_FAIL_FAST environment variable or the | |||
--gtest_fail_fast flag. The default value of the flag can also be changed | --gtest_fail_fast flag. The default value of the flag can also be changed | |||
by Bazel fail fast environment variable TESTBRIDGE_TEST_RUNNER_FAIL_FAST. | by Bazel fail fast environment variable TESTBRIDGE_TEST_RUNNER_FAIL_FAST. | |||
This script tests such functionality by invoking googletest-failfast-unittest_ | This script tests such functionality by invoking googletest-failfast-unittest_ | |||
(a program written with Google Test) with different environments and command | (a program written with Google Test) with different environments and command | |||
line flags. | line flags. | |||
""" | """ | |||
import os | import os | |||
import gtest_test_utils | from googletest.test import gtest_test_utils | |||
# Constants. | # Constants. | |||
# Bazel testbridge environment variable for fail fast | # Bazel testbridge environment variable for fail fast | |||
BAZEL_FAIL_FAST_ENV_VAR = 'TESTBRIDGE_TEST_RUNNER_FAIL_FAST' | BAZEL_FAIL_FAST_ENV_VAR = 'TESTBRIDGE_TEST_RUNNER_FAIL_FAST' | |||
# The environment variable for specifying fail fast. | # The environment variable for specifying fail fast. | |||
FAIL_FAST_ENV_VAR = 'GTEST_FAIL_FAST' | FAIL_FAST_ENV_VAR = 'GTEST_FAIL_FAST' | |||
# The command line flag for specifying fail fast. | # The command line flag for specifying fail fast. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |