summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-04 16:37:59 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-09-04 17:32:25 +0300
commit1911564805fe454919e8a5846534a0c1ef376a33 (patch)
treeb9bec0d9fae431e4787aa6496df049910cc70d6d /.gitlab-ci
parent2520686d9f2299a3f2062a88da34747a42e0848d (diff)
.gitlab-ci: List test binaries with missing top-level description correctly
Boolean logic with string is hard. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/list_undocumented_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci/list_undocumented_tests.py b/.gitlab-ci/list_undocumented_tests.py
index ee836559..0ce3f330 100755
--- a/.gitlab-ci/list_undocumented_tests.py
+++ b/.gitlab-ci/list_undocumented_tests.py
@@ -47,12 +47,12 @@ def main():
for test in tests:
subtests = get_subtests(testdir, test)
- if subtests and subtests[0].name:
- # no top level description
+ if subtests and subtests[0].name is None:
+ # top level description missing, list binary
print(test)
for name, description in subtests:
- if not name:
+ if name is None: # top level description, skipping
continue
if "NO DOCUMENTATION!" in description: