wscript
changeset 3703 71d93292bc49
parent 3697 97c84e70a7db
child 3826 40c5841b616d
--- a/wscript	Wed Sep 17 15:47:07 2008 +0100
+++ b/wscript	Wed Sep 17 20:04:26 2008 -0700
@@ -820,7 +820,7 @@
         self.testdir = testdir
         self.env = Params.g_build.env_of_name('default')
 
-    def run_test(self, verbose, generate, refDirName, testName, arguments=[], pyscript=None):
+    def run_test(self, verbose, generate, refDirName, testName, arguments=[], pyscript=None, refTestName=None):
         """
         @param verbose: enable verbose execution
 
@@ -836,11 +836,17 @@
         parameter contains the path to the python script, relative to
         the project root dir
 
+        @param refTestName: if not None, this is the name of the directory under refDirName
+        that contains the reference traces. Otherwise "refDirname/testName + .ref" is used.
+
         """
         if not isinstance(arguments, list):
             raise TypeError
         
-        refTestDirName = os.path.join(refDirName, (testName + ".ref"))
+        if refTestName is None:
+            refTestDirName = os.path.join(refDirName, (testName + ".ref"))
+        else:
+            refTestDirName = os.path.join(refDirName, refTestName)
 
         if not os.path.exists(refDirName):
             print"No reference trace repository"