lit: Add --repeat=N option, for running each test N times.
[oota-llvm.git] / utils / lit / TestRunner.py
index 5b4538f7d291cb201008729ed0022536f439062e..20fbc6c13a9f24f4b0754abbbcd1991089346064 100644 (file)
@@ -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_#')]