summaryrefslogtreecommitdiffstats
path: root/debian/tests/check_flaky.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/check_flaky.py')
-rwxr-xr-xdebian/tests/check_flaky.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/tests/check_flaky.py b/debian/tests/check_flaky.py
new file mode 100755
index 000000000..b7099d5de
--- /dev/null
+++ b/debian/tests/check_flaky.py
@@ -0,0 +1,23 @@
+#!/usr/bin/python3
+
+# check if the list of flaky tests is actually valid
+# Must be run from base of git dir
+
+import os
+import subprocess
+import sys
+
+sys.dont_write_bytecode = True
+from flaky_tests_list import flaky_test_dirs
+
+rc = 0
+
+for i in flaky_test_dirs:
+
+ testdir = os.path.join(i, 'tests', 'unit')
+
+ if not os.path.isdir(testdir):
+ print(testdir, 'does not exist. Consider removing it from flaky_test_dirs.py')
+ rc=1
+
+exit(rc)