Skip to content

Commit 17b6c61

Browse files
authored
CI fix to improve error clarity
1 parent 6d10b59 commit 17b6c61

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@
1313

1414
output = process.stdout.readline().decode('utf-8')
1515

16+
def read_line():
17+
return process.stdout.readline().decode('utf-8')
18+
1619
if output.strip() == '':
17-
output += process.stdout.readline().decode('utf-8')
20+
output += read_line()
1821

1922
if 'React render server' not in output:
20-
raise Exception('Unexpected output: "{}"'.format(output))
23+
if 'module.js' in output:
24+
line = read_line()
25+
while line:
26+
output += line + os.linesep
27+
line = read_line()
28+
raise Exception('Unexpected output from render server subprocess...' + os.linesep + os.linesep + output)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy