File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12377,7 +12377,8 @@ def test_build_error_color(self):
12377
12377
returncode, output = self.run_on_pty([EMCC, 'src.c'])
12378
12378
self.assertNotEqual(returncode, 0)
12379
12379
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)
12381
12382
12382
12383
@parameterized({
12383
12384
'fno_diagnostics_color': ['-fno-diagnostics-color'],
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def reset_color_windows():
114
114
def output_color (color ):
115
115
if WINDOWS :
116
116
return output_color_windows (color )
117
- return '\033 [1m \033 [ 3%sm' % color
117
+ return '\033 [3%sm' % color
118
118
119
119
120
120
def bold ():
You can’t perform that action at this time.
0 commit comments