Skip to content

test: fix test.py command line options processing

https://github.com/nodejs/node/pull/11086 had introduced a regression that broke command line options processing for tools/test.py.

Basically, it made tools/test.py discard the command line argument that would be passed after --abort-on-timeout. For instance, when running:

$ python tools/test.py --abort-on-timeout path/to/some-test

all tests would be run because the last command line argument (/path/to/some-test) would be discarded.

This change fixes this regression.

Refs: https://github.com/nodejs/node/pull/11086

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading