Skip to content

Commit be241c3

Browse files
Trottevanlucas
authored andcommitted
test: run known_issues tests in CI
Add `known_issues` tests to `make test` and `make test-ci` targets and their equivalents on Windows. PR-URL: #6559 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 8141c2f commit be241c3

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test: all
118118
$(MAKE) build-addons
119119
$(MAKE) cctest
120120
$(PYTHON) tools/test.py --mode=release -J \
121-
addon doctool message parallel sequential
121+
addon doctool known_issues message parallel sequential
122122
$(MAKE) lint
123123

124124
test-parallel: all
@@ -178,7 +178,7 @@ test-all-valgrind: test-build
178178
test-ci: | build-addons
179179
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
180180
--mode=release --flaky-tests=$(FLAKY_TESTS) \
181-
$(TEST_CI_ARGS) addons doctool message parallel sequential
181+
$(TEST_CI_ARGS) addons doctool known_issues message parallel sequential
182182

183183
test-release: test-build
184184
$(PYTHON) tools/test.py --mode=release
@@ -202,7 +202,7 @@ test-debugger: all
202202
$(PYTHON) tools/test.py debugger
203203

204204
test-known-issues: all
205-
$(PYTHON) tools/test.py known_issues --expect-fail
205+
$(PYTHON) tools/test.py known_issues
206206

207207
test-npm: $(NODE_EXE)
208208
NODE=$(NODE) tools/test-npm.sh

test/known_issues/testcfg.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import sys, os
2+
import copy
23
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
34
import testpy
45

56
def GetConfiguration(context, root):
6-
return testpy.SimpleTestConfiguration(context, root, 'known_issues')
7+
myContext = copy.copy(context)
8+
myContext.expect_fail = 1
9+
return testpy.SimpleTestConfiguration(myContext, root, 'known_issues')

vcbuild.bat

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
5555
if /i "%1"=="noetw" set noetw=1&goto arg-ok
5656
if /i "%1"=="noperfctr" set noperfctr=1&goto arg-ok
5757
if /i "%1"=="licensertf" set licensertf=1&goto arg-ok
58-
if /i "%1"=="test" set test_args=%test_args% addons doctool sequential parallel message -J&set jslint=1&set build_addons=1&goto arg-ok
59-
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap addons doctool message sequential parallel&set build_addons=1&goto arg-ok
58+
if /i "%1"=="test" set test_args=%test_args% addons doctool known_issues message parallel sequential -J&set jslint=1&set build_addons=1&goto arg-ok
59+
if /i "%1"=="test-ci" set test_args=%test_args% %test_ci_args% -p tap --logfile test.tap addons doctool known_issues message sequential parallel&set build_addons=1&goto arg-ok
6060
if /i "%1"=="test-addons" set test_args=%test_args% addons&set build_addons=1&goto arg-ok
6161
if /i "%1"=="test-simple" set test_args=%test_args% sequential parallel -J&goto arg-ok
6262
if /i "%1"=="test-message" set test_args=%test_args% message&goto arg-ok
6363
if /i "%1"=="test-gc" set test_args=%test_args% gc&set buildnodeweak=1&goto arg-ok
6464
if /i "%1"=="test-internet" set test_args=%test_args% internet&goto arg-ok
6565
if /i "%1"=="test-pummel" set test_args=%test_args% pummel&goto arg-ok
6666
if /i "%1"=="test-all" set test_args=%test_args% sequential parallel message gc internet pummel&set buildnodeweak=1&set jslint=1&goto arg-ok
67-
if /i "%1"=="test-known-issues" set test_args=%test_args% known_issues --expect-fail&goto arg-ok
67+
if /i "%1"=="test-known-issues" set test_args=%test_args% known_issues&goto arg-ok
6868
if /i "%1"=="jslint" set jslint=1&goto arg-ok
6969
if /i "%1"=="jslint-ci" set jslint_ci=1&goto arg-ok
7070
if /i "%1"=="msi" set msi=1&set licensertf=1&set download_arg="--download=all"&set i18n_arg=small-icu&goto arg-ok

0 commit comments

Comments
 (0)