From 3841023a44621e8d8133e9eb6e79e26481dc0bc3 Mon Sep 17 00:00:00 2001 From: Jan Niklas Hasse Date: Mon, 5 Nov 2018 18:52:51 +0100 Subject: Add test for #1418 (edge output should match status) --- misc/output_test.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/misc/output_test.py b/misc/output_test.py index 0651698..d19cebc 100755 --- a/misc/output_test.py +++ b/misc/output_test.py @@ -31,6 +31,27 @@ def run(build_ninja, flags='', pipe=False): return final_output class Output(unittest.TestCase): + def test_issue_1418(self): + self.assertEqual(run( +'''rule echo + command = sleep 0.$delay && echo $out + description = echo $out + +build a: echo + delay = 3 +build b: echo + delay = 2 +build c: echo + delay = 1 +'''), +'''[1/3] echo c\x1b[K +c +[2/3] echo b\x1b[K +b +[3/3] echo a\x1b[K +a +''') + def test_issue_1214(self): print_red = '''rule echo command = printf '\x1b[31mred\x1b[0m' -- cgit v0.12