diff options
-rwxr-xr-x | scripts/testsuite-filter | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/testsuite-filter b/scripts/testsuite-filter index 31ee7f0..6812d33 100755 --- a/scripts/testsuite-filter +++ b/scripts/testsuite-filter @@ -128,7 +128,9 @@ def read_white_lists(white_list_files, is_gcc): print ("Each line must contail <STATUS>: .*") print ("e.g. FAIL: g++.dg/pr83239.C") print ("Or starts with # for comment") - white_lists[key] = l + if key not in white_lists: + white_lists[key] = [] + white_lists[key].append(l) else: white_lists.add(l) @@ -206,7 +208,8 @@ def filter_result(tool, libc, white_list_base_dir, unexpected_results): for ur in unexpected_result: key = ur.split(' ')[1] if key in white_list and \ - ur.startswith(white_list[key]): + any(map(lambda x:ur.startswith(x), + white_list[key])): # This item can be ignored continue else: |