diff options
Diffstat (limited to 'util/wasm/batchedtestrunner/batchedtestrunner.js')
-rw-r--r-- | util/wasm/batchedtestrunner/batchedtestrunner.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/wasm/batchedtestrunner/batchedtestrunner.js b/util/wasm/batchedtestrunner/batchedtestrunner.js index e26e561b5a..7cd5f2d350 100644 --- a/util/wasm/batchedtestrunner/batchedtestrunner.js +++ b/util/wasm/batchedtestrunner/batchedtestrunner.js @@ -68,9 +68,9 @@ export class BatchedTestRunner { get errorDetails() { return this.#errorDetails; } - async run(targetIsBatch, testName, testOutputFormat) { + async run(targetIsBatch, testName, functions, testOutputFormat) { try { - await this.#doRun(targetIsBatch, testName, testOutputFormat); + await this.#doRun(targetIsBatch, testName, functions, testOutputFormat); } catch (e) { this.#setTestRunnerError(e.message); return; @@ -93,7 +93,7 @@ export class BatchedTestRunner { this.#setTestRunnerStatus(status.code, status.numberOfFailed); } - async #doRun(targetIsBatch, testName, testOutputFormat) { + async #doRun(targetIsBatch, testName, functions, testOutputFormat) { const module = await this.#loader.loadEmscriptenModule( targetIsBatch ? BatchedTestRunner.#TestBatchModuleName : testName, () => { } @@ -111,6 +111,7 @@ export class BatchedTestRunner { const LogToStdoutSpecialFilename = '-'; result = await module.exec({ args: [...(targetIsBatch ? [testClassName] : []), + ...(functions ?? []), '-o', `${LogToStdoutSpecialFilename},${testOutputFormat}`], onStdout: (output) => { this.#addTestOutput(testClassName, output); |