diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 |
commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /packages/Python/lldbsuite/test/dosep.py | |
parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/dosep.py')
-rw-r--r-- | packages/Python/lldbsuite/test/dosep.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/packages/Python/lldbsuite/test/dosep.py b/packages/Python/lldbsuite/test/dosep.py index 616fbf381edf..21010c28a78c 100644 --- a/packages/Python/lldbsuite/test/dosep.py +++ b/packages/Python/lldbsuite/test/dosep.py @@ -1558,7 +1558,7 @@ def rerun_tests(test_subdir, tests_for_rerun, dotest_argv, session_dir, print("\nTest rerun complete\n") -def main(num_threads, test_subdir, test_runner_name, results_formatter): +def main(num_threads, test_runner_name, results_formatter): """Run dotest.py in inferior mode in parallel. @param num_threads the parsed value of the num-threads command line @@ -1600,16 +1600,7 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter): session_dir = os.path.join(os.getcwd(), dotest_options.s) - # The root directory was specified on the command line - test_directory = os.path.dirname(os.path.realpath(__file__)) - if test_subdir and len(test_subdir) > 0: - test_subdir = os.path.join(test_directory, test_subdir) - if not os.path.isdir(test_subdir): - print( - 'specified test subdirectory {} is not a valid directory\n' - .format(test_subdir)) - else: - test_subdir = test_directory + test_subdir = configuration.get_absolute_path_to_root_test_dir() # clean core files in test tree from previous runs (Linux) cores = find('core.*', test_subdir) @@ -1698,7 +1689,7 @@ def main(num_threads, test_subdir, test_runner_name, results_formatter): # move core files into session dir cores = find('core.*', test_subdir) for core in cores: - dst = core.replace(test_directory, "")[1:] + dst = core.replace(test_subdir, "")[1:] dst = dst.replace(os.path.sep, "-") os.rename(core, os.path.join(session_dir, dst)) |