[Lldb-commits] [PATCH] D77608: [lldb/Scripts] Add script to replay multiple reproducers
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 15 05:59:16 PDT 2020
labath accepted this revision.
labath added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lldb/scripts/reproducer-replay.py:1
+#! /usr/bin/env python3
+
----------------
JDevlieghere wrote:
> This is needed for the timeout. I'd rather not rely on an external package for this unless anyone objects.
SGTM. Hopefully will get rid of py2 soon, and this isn't a very critical piece of infrastructure.
================
Comment at: lldb/scripts/reproducer-replay.py:50
+ if dir.startswith('Test') and extension == '.py':
+ reproducers.append(os.path.join(root, dir))
+ return reproducers
----------------
it would probably be slightly cleaner to make this a generator and use `yield os.path.join(root, dir)`
================
Comment at: lldb/scripts/reproducer-replay.py:86
+ else:
+ path = tempfile.gettempdir()
+
----------------
I'm not sure how useful is this now that we don't put reproducers in `/tmp`
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77608/new/
https://reviews.llvm.org/D77608
More information about the lldb-commits
mailing list