Skip to content

Commit 621d8c0

Browse files
authored
[test] Add --failfast flag to test runner (WebAssembly#1747)
1 parent 2428473 commit 621d8c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/core/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
parser.add_argument("--wasm", metavar="<wasm-command>", default=os.path.join(interpDir, "wasm"))
2020
parser.add_argument("--js", metavar="<js-command>")
2121
parser.add_argument("--generate-js-only", action='store_true')
22+
parser.add_argument("--failfast", action='store_true')
2223
parser.add_argument("--out", metavar="<out-dir>", default=outputDir)
2324
parser.add_argument("file", nargs='*')
2425
arguments = parser.parse_args()
@@ -117,4 +118,4 @@ def _runTestFile(self, inputPath):
117118
for fileName in inputFiles:
118119
testName = 'test ' + os.path.basename(fileName)
119120
setattr(RunTests, testName, lambda self, file=fileName: self._runTestFile(file))
120-
unittest.main()
121+
unittest.main(failfast=arguments.failfast)

0 commit comments

Comments
 (0)