Index: test/mjsunit/testcfg.py |
diff --git a/test/mjsunit/testcfg.py b/test/mjsunit/testcfg.py |
index c960ce6b30107e167ad4576f24d0e29594444fd8..181c8478fed289ffb6ea195279947c296a5374f3 100644 |
--- a/test/mjsunit/testcfg.py |
+++ b/test/mjsunit/testcfg.py |
@@ -77,7 +77,9 @@ class MjsunitTestSuite(testsuite.TestSuite): |
if SELF_SCRIPT_PATTERN.search(source): |
env = ["-e", "TEST_FILE_NAME=\"%s\"" % testfilename.replace("\\", "\\\\")] |
files = env + files |
- files.append(os.path.join(self.root, "mjsunit.js")) |
+ |
+ if not context.no_harness: |
+ files.append(os.path.join(self.root, "mjsunit.js")) |
files.append(testfilename) |
flags += files |