|
63 | 63 |
|
64 | 64 | # Initially maps a flag to its default value. After
|
65 | 65 | # _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
|
66 |
| -_flag_map = {'gtest_source_dir': os.path.dirname(sys.argv[0]), |
67 |
| - 'gtest_build_dir': os.path.dirname(sys.argv[0])} |
| 66 | +_flag_map = {'source_dir': os.path.dirname(sys.argv[0]), |
| 67 | + 'build_dir': os.path.dirname(sys.argv[0])} |
68 | 68 | _gtest_flags_are_parsed = False
|
69 | 69 |
|
70 | 70 |
|
@@ -111,13 +111,13 @@ def GetFlag(flag):
|
111 | 111 | def GetSourceDir():
|
112 | 112 | """Returns the absolute path of the directory where the .py files are."""
|
113 | 113 |
|
114 |
| - return os.path.abspath(GetFlag('gtest_source_dir')) |
| 114 | + return os.path.abspath(GetFlag('source_dir')) |
115 | 115 |
|
116 | 116 |
|
117 | 117 | def GetBuildDir():
|
118 | 118 | """Returns the absolute path of the directory where the test binaries are."""
|
119 | 119 |
|
120 |
| - return os.path.abspath(GetFlag('gtest_build_dir')) |
| 120 | + return os.path.abspath(GetFlag('build_dir')) |
121 | 121 |
|
122 | 122 |
|
123 | 123 | _temp_dir = None
|
@@ -161,7 +161,7 @@ def GetTestExecutablePath(executable_name, build_dir=None):
|
161 | 161 | if not os.path.exists(path):
|
162 | 162 | message = (
|
163 | 163 | 'Unable to find the test binary. Please make sure to provide path\n'
|
164 |
| - 'to the binary via the --gtest_build_dir flag or the GTEST_BUILD_DIR\n' |
| 164 | + 'to the binary via the --build_dir flag or the BUILD_DIR\n' |
165 | 165 | 'environment variable. For convenient use, invoke this script via\n'
|
166 | 166 | 'mk_test.py.\n'
|
167 | 167 | # TODO(vladl@google.com): change mk_test.py to test.py after renaming
|
|
0 commit comments