aboutsummaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-04-29 21:35:14 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-04-29 21:40:37 -0400
commit8706d7d098f27aa1b89267fb2f1ea290d30c591e (patch)
tree2f857ac68fdf5f6069695a7426eb5043c2685442 /run_project_tests.py
parentfaf0ce96e28b14f46765887dc3b6b892440b02c1 (diff)
downloadmeson-8706d7d098f27aa1b89267fb2f1ea290d30c591e.zip
meson-8706d7d098f27aa1b89267fb2f1ea290d30c591e.tar.gz
meson-8706d7d098f27aa1b89267fb2f1ea290d30c591e.tar.bz2
Warn when directory numbers are non-unique.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 8a3a5b2..149a183 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)