[gjs: 4/12] CI: Don't ignore fatal errors in IWYU postprocess script




commit 3c1fad9f29fef2838618b601c39a7c981b02a335
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon Nov 23 22:25:04 2020 -0800

    CI: Don't ignore fatal errors in IWYU postprocess script
    
    If the compilation failed then the IWYU script should fail as well.

 tools/process_iwyu.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py
index 521dc951..cfd71fa2 100755
--- a/tools/process_iwyu.py
+++ b/tools/process_iwyu.py
@@ -144,6 +144,11 @@ for line in sys.stdin:
     if not line:
         continue
 
+    if 'fatal error:' in line:
+        print(line)
+        there_were_errors = True
+        continue
+
     # filter out errors having to do with compiler arguments unknown to IWYU
     if line.startswith('error:'):
         continue


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]