summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-01-18 23:05:19 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-01-18 23:05:19 +0000
commit71c73030445be2c87476b07aa5de93f08c1d46fa (patch)
tree1fe12c077e7d467130878e6f4cdac4186f9d75e9 /lldb/packages/Python/lldbsuite/test
parent097a0497400f25c7c296feba0d148523bd37f29e (diff)
downloadbcm5719-llvm-71c73030445be2c87476b07aa5de93f08c1d46fa.tar.gz
bcm5719-llvm-71c73030445be2c87476b07aa5de93f08c1d46fa.zip
[dotest] Add logging to investigate CI issue.
We're seeing an odd issue on GreenDragon's lldb-cmake-matrix. Dotest is unable to move a log file (OSError: [Errno 2] No such file or directory). The os.rename call is guarded with a check that the source file and destination directory exist. This wraps the call in a try-except that prints the source and destination path to see which component seemingly doesn't exist. llvm-svn: 351611
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 161e8c61349..bf3223709ae 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1228,7 +1228,12 @@ class Base(unittest2.TestCase):
remove_file(dst)
lldbutil.mkdir_p(os.path.dirname(dst))
- os.rename(src, dst)
+ try:
+ os.rename(src, dst)
+ except OSError:
+ print("src (exists={}): {}".format(os.path.exists(src), src))
+ print("dst (exists={}): {}".format(os.path.exists(dst), dst))
+ raise
else:
# success! (and we don't want log files) delete log files
for log_file in log_files_for_this_test:
OpenPOWER on IntegriCloud