gen_test_desc.py: Allow to temporarily deactivate some configs in a group
For this, a config should be renamed to have ".inactive" suffix. This is
apparently better than removing it altogether. This feature is needed in
case there's an issue with build/test process of a particular config
which jeopardize/break the entire CI jobs (in particular, what specifically
prompted addition of this feature is a particular device being offline in
LAVA, so all test jobs submitted just hanged in queue, while Jenkins builds
waiting for them until timeout hit, so entire top-level jobs were guaranteedly
failing, hogging builder agents for hours).
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I164a099350f452aa3349df5f2442b1b2bbbd8d8e
diff --git a/script/gen_test_desc.py b/script/gen_test_desc.py
index 7ee07b8..1347011 100755
--- a/script/gen_test_desc.py
+++ b/script/gen_test_desc.py
@@ -100,6 +100,8 @@
elif os.path.isdir(item_loc):
# If it's a directory, select all files inside it
for a_file in next(os.walk(item_loc))[2]:
+ if a_file.endswith(".inactive"):
+ continue
gen_desc(item, a_file)
else:
# The item doesn't exist