@@ -31,6 +31,7 @@ export const coverageDir = "coverage";
3131export async function runConsoleTests ( runJs , defaultReporter , runInParallel , options = { } ) {
3232 const testTimeout = cmdLineOptions . timeout ;
3333 const tests = cmdLineOptions . tests ;
34+ const skipSysTests = cmdLineOptions . skipSysTests ;
3435 const inspect = cmdLineOptions . break || cmdLineOptions . inspect ;
3536 const runners = cmdLineOptions . runners ;
3637 const light = cmdLineOptions . light ;
@@ -74,8 +75,8 @@ export async function runConsoleTests(runJs, defaultReporter, runInParallel, opt
7475 console . log ( chalk . yellowBright ( `[watch] running tests...` ) ) ;
7576 }
7677
77- if ( tests || runners || light || testTimeout || taskConfigsFolder || keepFailed || shards || shardId ) {
78- writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , testTimeout , keepFailed , shards , shardId ) ;
78+ if ( tests || skipSysTests || runners || light || testTimeout || taskConfigsFolder || keepFailed || shards || shardId ) {
79+ writeTestConfigFile ( tests , skipSysTests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , testTimeout , keepFailed , shards , shardId ) ;
7980 }
8081
8182 const colors = cmdLineOptions . colors ;
@@ -180,6 +181,7 @@ export async function cleanTestDirs() {
180181/**
181182 * used to pass data from command line directly to run.js
182183 * @param {string } tests
184+ * @param {boolean } skipSysTests
183185 * @param {string } runners
184186 * @param {boolean } light
185187 * @param {string } [taskConfigsFolder]
@@ -190,9 +192,10 @@ export async function cleanTestDirs() {
190192 * @param {number | undefined } [shards]
191193 * @param {number | undefined } [shardId]
192194 */
193- export function writeTestConfigFile ( tests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , timeout , keepFailed , shards , shardId ) {
195+ export function writeTestConfigFile ( tests , skipSysTests , runners , light , taskConfigsFolder , workerCount , stackTraceLimit , timeout , keepFailed , shards , shardId ) {
194196 const testConfigContents = JSON . stringify ( {
195197 test : tests ? [ tests ] : undefined ,
198+ skipSysTests : skipSysTests ? skipSysTests : undefined ,
196199 runners : runners ? runners . split ( "," ) : undefined ,
197200 light,
198201 workerCount,
0 commit comments