mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-21 20:30:47 +02:00
fix(gstack2): harden integrated runtime verification
This commit is contained in:
@@ -261,9 +261,12 @@ export async function runDefaultFreeTests(): Promise<number> {
|
||||
return slopSignal === null ? 0 : terminationSignalExitCode(slopSignal);
|
||||
}
|
||||
|
||||
export async function runStrictTestShard(files: string[]): Promise<number> {
|
||||
export async function runStrictTestShard(
|
||||
files: string[],
|
||||
timeoutMs?: number,
|
||||
): Promise<number> {
|
||||
if (files.length === 0) throw new Error('Cannot run an empty free-test shard.');
|
||||
const child = spawn(process.execPath, buildShardArgs(exactTestFileSelectors(files)), {
|
||||
const child = spawn(process.execPath, buildShardArgs(exactTestFileSelectors(files), timeoutMs), {
|
||||
cwd: ROOT,
|
||||
env: process.env,
|
||||
stdio: ['inherit', 'pipe', 'pipe'],
|
||||
|
||||
Reference in New Issue
Block a user