Skip to content

Commit

Permalink
[test] Add --failfast flag to test runner (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbc100 committed Apr 30, 2024
1 parent 2428473 commit 621d8c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core/run.py
Expand Up @@ -19,6 +19,7 @@
parser.add_argument("--wasm", metavar="<wasm-command>", default=os.path.join(interpDir, "wasm"))
parser.add_argument("--js", metavar="<js-command>")
parser.add_argument("--generate-js-only", action='store_true')
parser.add_argument("--failfast", action='store_true')
parser.add_argument("--out", metavar="<out-dir>", default=outputDir)
parser.add_argument("file", nargs='*')
arguments = parser.parse_args()
Expand Down Expand Up @@ -117,4 +118,4 @@ def _runTestFile(self, inputPath):
for fileName in inputFiles:
testName = 'test ' + os.path.basename(fileName)
setattr(RunTests, testName, lambda self, file=fileName: self._runTestFile(file))
unittest.main()
unittest.main(failfast=arguments.failfast)

0 comments on commit 621d8c0

Please sign in to comment.