build:wafsamba: Ignore cfg_file absolute paths differences
authorThomas Nagy <tnagy@waf.io>
Sat, 15 Apr 2017 16:56:11 +0000 (18:56 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:22 +0000 (06:37 +0200)
Due to build variants, cfg_file paths are written as absolute paths.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/compare_cc_results.py

index a3a9d113741bbfde73f4ca7cba2e477a768b7f8e..4f97dc371affee0ad0982bfe4ce859aa55b3bd98 100755 (executable)
@@ -27,6 +27,9 @@ for fname in sys.argv[1:]:
     lines = list()
     f = open(fname, 'r')
     for line in f:
+        if line.startswith("cfg_files ="):
+            # waf writes configuration files as absolute paths
+            continue
         if len(line.split('=', 1)) == 2:
             key = line.split('=', 1)[0].strip()
             if key in exceptions: