summaryrefslogtreecommitdiffstats
path: root/utils/lit/Test.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lit/Test.py')
-rw-r--r--utils/lit/Test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/lit/Test.py b/utils/lit/Test.py
index d3f6274..1f6556b 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!"
OpenPOWER on IntegriCloud