From 8706d7d098f27aa1b89267fb2f1ea290d30c591e Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 29 Apr 2017 21:35:14 -0400 Subject: Warn when directory numbers are non-unique. --- run_project_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index 8a3a5b285..149a1830f 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -15,6 +15,7 @@ # limitations under the License. from glob import glob +import itertools import os, subprocess, shutil, sys, signal from io import StringIO from ast import literal_eval @@ -645,4 +646,10 @@ if __name__ == '__main__': print('\nMesonlogs of failing tests\n') for l in failing_logs: print(l, '\n') + for name, dirs, skip in all_tests: + dirs = (os.path.basename(x) for x in dirs) + for k, g in itertools.groupby(dirs, key=lambda x: x.split()[0]): + tests = list(g) + if len(tests) != 1: + print('WARNING: The %s suite contains duplicate "%s" tests: "%s"' % (name, k, '", "'.join(tests))) sys.exit(failing_tests) -- cgit v1.3