diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-05-13 18:05:20 (GMT) |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-05-13 18:05:20 (GMT) |
commit | 3678a248d35723d5e18c7c2a78d7da5b4f5a3e57 (patch) | |
tree | d207f717b28321d8001850af98aa3d886c855897 /test | |
parent | 2c697f5919691d24e39c057090cabdc5ab145484 (diff) | |
download | googletest-3678a248d35723d5e18c7c2a78d7da5b4f5a3e57.zip googletest-3678a248d35723d5e18c7c2a78d7da5b4f5a3e57.tar.gz googletest-3678a248d35723d5e18c7c2a78d7da5b4f5a3e57.tar.bz2 |
Renames test script flags.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gtest_help_test.py | 2 | ||||
-rwxr-xr-x | test/gtest_output_test.py | 2 | ||||
-rwxr-xr-x | test/gtest_test_utils.py | 10 | ||||
-rwxr-xr-x | test/run_tests_util.py | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/gtest_help_test.py b/test/gtest_help_test.py index 3cb4c48..dc67ed3 100755 --- a/test/gtest_help_test.py +++ b/test/gtest_help_test.py @@ -32,7 +32,7 @@ """Tests the --help flag of Google C++ Testing Framework. SYNOPSIS - gtest_help_test.py --gtest_build_dir=BUILD/DIR + gtest_help_test.py --build_dir=BUILD/DIR # where BUILD/DIR contains the built gtest_help_test_ file. gtest_help_test.py """ diff --git a/test/gtest_output_test.py b/test/gtest_output_test.py index 192030a..dca4af0 100755 --- a/test/gtest_output_test.py +++ b/test/gtest_output_test.py @@ -32,7 +32,7 @@ """Tests the text output of Google C++ Testing Framework. SYNOPSIS - gtest_output_test.py --gtest_build_dir=BUILD/DIR --gengolden + gtest_output_test.py --build_dir=BUILD/DIR --gengolden # where BUILD/DIR contains the built gtest_output_test_ file. gtest_output_test.py --gengolden gtest_output_test.py diff --git a/test/gtest_test_utils.py b/test/gtest_test_utils.py index e0f5973..e7ee9d9 100755 --- a/test/gtest_test_utils.py +++ b/test/gtest_test_utils.py @@ -63,8 +63,8 @@ TestCase = _test_module.TestCase # pylint: disable-msg=C6409 # Initially maps a flag to its default value. After # _ParseAndStripGTestFlags() is called, maps a flag to its actual value. -_flag_map = {'gtest_source_dir': os.path.dirname(sys.argv[0]), - 'gtest_build_dir': os.path.dirname(sys.argv[0])} +_flag_map = {'source_dir': os.path.dirname(sys.argv[0]), + 'build_dir': os.path.dirname(sys.argv[0])} _gtest_flags_are_parsed = False @@ -111,13 +111,13 @@ def GetFlag(flag): def GetSourceDir(): """Returns the absolute path of the directory where the .py files are.""" - return os.path.abspath(GetFlag('gtest_source_dir')) + return os.path.abspath(GetFlag('source_dir')) def GetBuildDir(): """Returns the absolute path of the directory where the test binaries are.""" - return os.path.abspath(GetFlag('gtest_build_dir')) + return os.path.abspath(GetFlag('build_dir')) _temp_dir = None @@ -161,7 +161,7 @@ def GetTestExecutablePath(executable_name, build_dir=None): if not os.path.exists(path): message = ( 'Unable to find the test binary. Please make sure to provide path\n' - 'to the binary via the --gtest_build_dir flag or the GTEST_BUILD_DIR\n' + 'to the binary via the --build_dir flag or the BUILD_DIR\n' 'environment variable. For convenient use, invoke this script via\n' 'mk_test.py.\n' # TODO(vladl@google.com): change mk_test.py to test.py after renaming diff --git a/test/run_tests_util.py b/test/run_tests_util.py index 9e57931..a123569 100755 --- a/test/run_tests_util.py +++ b/test/run_tests_util.py @@ -171,7 +171,7 @@ class TestRunner(object): def __init__(self, script_dir, - build_dir_var_name='GTEST_BUILD_DIR', + build_dir_var_name='BUILD_DIR', injected_os=os, injected_subprocess=subprocess, injected_build_dir_finder=_GetGtestBuildDir): |