Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 3841023

Browse files
committed
Add test for ninja-build#1418 (edge output should match status)
1 parent 4baea2b commit 3841023

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

misc/output_test.py

+21
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ def run(build_ninja, flags='', pipe=False):
3131
return final_output
3232

3333
class Output(unittest.TestCase):
34+
def test_issue_1418(self):
35+
self.assertEqual(run(
36+
'''rule echo
37+
command = sleep 0.$delay && echo $out
38+
description = echo $out
39+
40+
build a: echo
41+
delay = 3
42+
build b: echo
43+
delay = 2
44+
build c: echo
45+
delay = 1
46+
'''),
47+
'''[1/3] echo c\x1b[K
48+
c
49+
[2/3] echo b\x1b[K
50+
b
51+
[3/3] echo a\x1b[K
52+
a
53+
''')
54+
3455
def test_issue_1214(self):
3556
print_red = '''rule echo
3657
command = printf '\x1b[31mred\x1b[0m'

0 commit comments

Comments
 (0)