Skip to content

Commit be3fe6b

Browse files
authored
Fix test_build_error_color after emscripten-core#24804 (emscripten-core#24810)
My own fault for not waiting for the full CI run to complete. Fixing the test also revealed a bug. Doh!
1 parent 45f53fb commit be3fe6b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/test_other.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12377,7 +12377,8 @@ def test_build_error_color(self):
1237712377
returncode, output = self.run_on_pty([EMCC, 'src.c'])
1237812378
self.assertNotEqual(returncode, 0)
1237912379
self.assertIn(b"\x1b[1msrc.c:1:13: \x1b[0m\x1b[0;1;31merror: \x1b[0m\x1b[1mexpected '}'\x1b[0m", output)
12380-
self.assertIn(b"\x1b[31merror: ", output)
12380+
# Verify that emcc errors show up as red and bold
12381+
self.assertIn(b"emcc: \x1b[31m\x1b[1m", output)
1238112382

1238212383
@parameterized({
1238312384
'fno_diagnostics_color': ['-fno-diagnostics-color'],

tools/diagnostics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def reset_color_windows():
114114
def output_color(color):
115115
if WINDOWS:
116116
return output_color_windows(color)
117-
return '\033[1m\033[3%sm' % color
117+
return '\033[3%sm' % color
118118

119119

120120
def bold():

0 commit comments

Comments
 (0)