From 40c67b5832877935a555fc63bfaa735332c79700 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 15 Nov 2009 01:02:09 +0000 Subject: 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 --- utils/lit/Test.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/lit/Test.py') diff --git a/utils/lit/Test.py b/utils/lit/Test.py index d3f627456f..1f6556ba85 100644 --- a/utils/lit/Test.py +++ b/utils/lit/Test.py @@ -54,6 +54,14 @@ class Test: self.output = None # The wall time to execute this test, if timing and once complete. self.elapsed = None + # The repeat index of this test, or None. + self.index = None + + def copyWithIndex(self, index): + import copy + res = copy.copy(self) + res.index = index + return res def setResult(self, result, output, elapsed): assert self.result is None, "Test result already set!" -- cgit v1.2.3-18-g5258