From 1911564805fe454919e8a5846534a0c1ef376a33 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Wed, 4 Sep 2019 16:37:59 +0300 Subject: .gitlab-ci: List test binaries with missing top-level description correctly Boolean logic with string is hard. Cc: Petri Latvala Signed-off-by: Arkadiusz Hiler Reviewed-by: Petri Latvala --- .gitlab-ci/list_undocumented_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.gitlab-ci') 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: -- cgit v1.2.3