| Index: googletest/run_test_cases.py
|
| diff --git a/run_test_cases.py b/googletest/run_test_cases.py
|
| similarity index 99%
|
| rename from run_test_cases.py
|
| rename to googletest/run_test_cases.py
|
| index 094fff139020e32e518c250c0cde2c241a057156..9b8d72d8e6ac035f8ef9ffd1fb22355a70ad076b 100755
|
| --- a/run_test_cases.py
|
| +++ b/googletest/run_test_cases.py
|
| @@ -25,10 +25,11 @@ import time
|
| from xml.dom import minidom
|
| import xml.parsers.expat
|
|
|
| -import run_isolated
|
| +ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
| +if not ROOT_DIR in sys.path:
|
| + sys.path.insert(0, ROOT_DIR)
|
|
|
| -# Scripts using run_test_cases as a library expect this function.
|
| -from run_isolated import fix_python_path
|
| +import run_isolated
|
|
|
|
|
| # These are known to influence the way the output is generated.
|
| @@ -1600,7 +1601,7 @@ def process_args(argv):
|
|
|
| if options.run_all and options.max_failures is not None:
|
| parser.error('Use only one of --run-all or --max-failures')
|
| - return parser, options, fix_python_path(args)
|
| + return parser, options, run_isolated.fix_python_path(args)
|
|
|
|
|
| def main(argv):
|
|
|