From 229dca3dee552f448dc9026237625ed58e8acfdc Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 18 May 2018 01:20:25 +0200 Subject: test,tools: enable running tests under workers Enable running tests inside workers by passing `--worker` to `tools/test.py`. A number of tests are marked as skipped, or have been slightly altered to fit the different environment. PR-URL: https://github.com/nodejs/node/pull/20876 Reviewed-By: Gireesh Punathil Reviewed-By: Benjamin Gruenbaum Reviewed-By: Shingo Inoue Reviewed-By: Matteo Collina Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: John-David Dalton Reviewed-By: Gus Caplan --- test/parallel/test-cli-eval.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/parallel/test-cli-eval.js') diff --git a/test/parallel/test-cli-eval.js b/test/parallel/test-cli-eval.js index 201d5a6a49..7a2c7a82aa 100644 --- a/test/parallel/test-cli-eval.js +++ b/test/parallel/test-cli-eval.js @@ -34,6 +34,9 @@ const path = require('path'); const fixtures = require('../common/fixtures'); const nodejs = `"${process.execPath}"`; +if (!common.isMainThread) + common.skip('process.chdir is not available in Workers'); + if (process.argv.length > 2) { console.log(process.argv.slice(2).join(' ')); process.exit(0); -- cgit v1.2.3