eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 30158fe89cf9dabc582dece4a738e8cd5800111f
parent 9a15a46df57217125d4cc6b205b5a1c0d7ef6eee
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 12 Aug 2021 13:21:53 -0700

test-runner: don't run duplicate tests

If the user provides duplicate tests in the list only append one
of them to the list. This can happen accidentally when using
glob matches.

Diffstat:
Mtools/test-runner | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/test-runner b/tools/test-runner @@ -1013,15 +1013,17 @@ def build_test_list(args): tests = [test_root + '/' + x for x in full_list[i:] \ if x.startswith('test')] elif os.path.exists(t): - tests.append(t) + if t not in tests: + tests.append(t) elif os.path.exists(path): - tests.append(path) + if path not in tests: + tests.append(path) else: matches = glob(path) if matches == []: raise Exception("Could not find test %s" % t) - tests.extend(matches) + tests.extend(list(set(matches) - set(tests))) return sorted(tests)