summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2018-10-03 21:42:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2018-10-03 21:42:54 +0000
commit0e99f561e1fc419eb5d67a8b7f4a1149906fff4f (patch)
treee2f1159146c54d9166e9ff0ffedaf90602f5d141 /lldb/packages/Python/lldbsuite/test
parent98faa3976da78974bb53515c038ac8183f7f2593 (diff)
downloadbcm5719-llvm-0e99f561e1fc419eb5d67a8b7f4a1149906fff4f.tar.gz
bcm5719-llvm-0e99f561e1fc419eb5d67a8b7f4a1149906fff4f.zip
Fix buildbot regression by rL339929: NameError: global name 'test_directory' is not defined
With buildbot slave under test - I get after rL339929: http://lab.llvm.org:8014/builders/lldb-x86_64-fedora-28-cmake/builds/243/steps/test1/logs/stdio File "/home/buildbot/lldbroot/lldb-x86_64-fedora-28-cmake/scripts/../llvm/tools/lldb/test/dotest.py", line 7, in <module> lldbsuite.test.run_suite() File "/quad/home/buildbot/lldbroot/lldb-x86_64-fedora-28-cmake/llvm/tools/lldb/packages/Python/lldbsuite/test/dotest.py", line 1177, in run_suite configuration.results_formatter_object) File "/quad/home/buildbot/lldbroot/lldb-x86_64-fedora-28-cmake/llvm/tools/lldb/packages/Python/lldbsuite/test/dosep.py", line 1692, in main dst = core.replace(test_directory, "")[1:] NameError: global name 'test_directory' is not defined Patch by Vedant Kumar. Differential Revision: https://reviews.llvm.org/D51874 llvm-svn: 343726
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dosep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dosep.py b/lldb/packages/Python/lldbsuite/test/dosep.py
index 00bfa2fa337..21010c28a78 100644
--- a/lldb/packages/Python/lldbsuite/test/dosep.py
+++ b/lldb/packages/Python/lldbsuite/test/dosep.py
@@ -1689,7 +1689,7 @@ def main(num_threads, 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))
OpenPOWER on IntegriCloud