Skip to content

Commit 3d2181c

Browse files
seppevsrefack
authored andcommitted
test: run the addon tests last
Running the addon tests before the parallel, sequential, etc. tests can be a problem if there is a bug in node that prevents the addon tests from running properly. When the addon tests fail for any reason, then none of the other tests (e.g. parallel, etc.) are executed. Running the addon tests last fixes this. Refs: #12031 PR-URL: #12062 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 40b6cf2 commit 3d2181c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ test: all
196196
$(MAKE) build-addons-napi
197197
$(MAKE) cctest
198198
$(PYTHON) tools/test.py --mode=release -J \
199-
addons addons-napi doctool inspector known_issues message pseudo-tty parallel sequential
199+
doctool inspector known_issues message pseudo-tty parallel sequential $(CI_NATIVE_SUITES)
200200
$(MAKE) lint
201201

202202
test-parallel: all
@@ -349,7 +349,7 @@ test-ci: | clear-stalled build-addons build-addons-napi
349349
out/Release/cctest --gtest_output=tap:cctest.tap
350350
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
351351
--mode=release --flaky-tests=$(FLAKY_TESTS) \
352-
$(TEST_CI_ARGS) $(CI_NATIVE_SUITES) $(CI_JS_SUITES)
352+
$(TEST_CI_ARGS) $(CI_JS_SUITES) $(CI_NATIVE_SUITES)
353353
# Clean up any leftover processes, error if found.
354354
ps awwx | grep Release/node | grep -v grep | cat
355355
@PS_OUT=`ps awwx | grep Release/node | grep -v grep | awk '{print $$1}'`; \

vcbuild.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
6060
if /i "%1"=="noetw" set noetw=1&goto arg-ok
6161
if /i "%1"=="noperfctr" set noperfctr=1&goto arg-ok
6262
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
63-
if /i "%1"=="test" set test_args=%test_args% addons addons-napi doctool known_issues message parallel sequential -J&set cpplint=1&set jslint=1&set build_addons=1&set build_addons_napi=1&goto arg-ok
64-
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap addons addons-napi doctool inspector known_issues message sequential parallel&set cctest_args=%cctest_args% --gtest_output=tap:cctest.tap&set build_addons=1&set build_addons_napi=1&goto arg-ok
63+
if /i "%1"=="test" set test_args=%test_args% doctool known_issues message parallel sequential addons addons-napi -J&set cpplint=1&set jslint=1&set build_addons=1&set build_addons_napi=1&goto arg-ok
64+
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap doctool inspector known_issues message sequential parallel addons addons-napi&set cctest_args=%cctest_args% --gtest_output=tap:cctest.tap&set build_addons=1&set build_addons_napi=1&goto arg-ok
6565
if /i "%1"=="test-addons" set test_args=%test_args% addons&set build_addons=1&goto arg-ok
6666
if /i "%1"=="test-addons-napi" set test_args=%test_args% addons-napi&set build_addons_napi=1&goto arg-ok
6767
if /i "%1"=="test-simple" set test_args=%test_args% sequential parallel -J&goto arg-ok

0 commit comments

Comments
 (0)