diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-15 01:02:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-15 01:02:09 +0000 |
commit | 40c67b5832877935a555fc63bfaa735332c79700 (patch) | |
tree | a12dd454414df2b467b39abcd5e2fe2eee46d2e9 /utils/lit/TestRunner.py | |
parent | bfa092958393ec621767771f9f168e7ff973a179 (diff) |
lit: Add --repeat=N option, for running each test N times.
- Currently just useful for timing, although it could be extended as one (bad) way to deal with flaky tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/TestRunner.py')
-rw-r--r-- | utils/lit/TestRunner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py index 5b4538f7d2..20fbc6c13a 100644 --- a/utils/lit/TestRunner.py +++ b/utils/lit/TestRunner.py @@ -367,6 +367,8 @@ def parseIntegratedTestScript(test): execpath = test.getExecPath() execdir,execbase = os.path.split(execpath) tmpBase = os.path.join(execdir, 'Output', execbase) + if test.index is not None: + tmpBase += '_%d' % test.index # We use #_MARKER_# to hide %% while we do the other substitutions. substitutions = [('%%', '#_MARKER_#')] |