GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: runner should return 0 on flaky tests · nodejs/node@8f8ab6f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+10-3Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ def __init__(self, cases, flaky_tests_mode):
7575
self.remaining = len(cases)
7676
self.total = len(cases)
7777
self.failed = [ ]
78+
self.flaky_failed = [ ]
7879
self.crashed = 0
80+
self.flaky_crashed = 0
7981
self.lock = threading.Lock()
8082
self.shutdown_event = threading.Event()
8183

@@ -143,9 +145,14 @@ def RunSingle(self, parallel, thread_id):
143145
return
144146
self.lock.acquire()
145147
if output.UnexpectedOutput():
146-
self.failed.append(output)
147-
if output.HasCrashed():
148-
self.crashed += 1
148+
if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE:
149+
self.flaky_failed.append(output)
150+
if output.HasCrashed():
151+
self.flaky_crashed += 1
152+
else:
153+
self.failed.append(output)
154+
if output.HasCrashed():
155+
self.crashed += 1
149156
else:
150157
self.succeeded += 1
151158
self.remaining -= 1

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.