[Lldb-commits] [lldb] r120625 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Wed Dec 1 15:35:13 PST 2010
Author: johnny
Date: Wed Dec 1 17:35:13 2010
New Revision: 120625
URL: http://llvm.org/viewvc/llvm-project?rev=120625&view=rev
Log:
Add a mechanism of overwriting the default 1.0 second wait time between test
cases when specifying '-w' to the test driver, by using an environment variable
LLDB_TIME_WAIT_BETWEEN_TEST_CASES.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=120625&r1=120624&r2=120625&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Dec 1 17:35:13 2010
@@ -461,7 +461,10 @@
if ("LLDB_WAIT_BETWEEN_TEST_CASES" in os.environ and
os.environ["LLDB_WAIT_BETWEEN_TEST_CASES"] == 'YES'):
- time.sleep(1.0)
+ waitTime = 1.0
+ if "LLDB_TIME_WAIT_BETWEEN_TEST_CASES" in os.environ:
+ waitTime = float(os.environ["LLDB_TIME_WAIT_BETWEEN_TEST_CASES"])
+ time.sleep(waitTime)
if "LLDB_MAX_LAUNCH_COUNT" in os.environ:
self.maxLaunchCount = int(os.environ["LLDB_MAX_LAUNCH_COUNT"])
More information about the lldb-commits
mailing list