]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: remote: Sort tests correctly
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sat, 26 Sep 2020 11:26:52 +0000 (13:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 08:11:32 +0000 (11:11 +0300)
Problem appeared after introducing python3 support.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/remote/run-tests.py

index 95c8ab65d9d8f6e4104eb2019ffdc2e0caa8c1c6..e26e3483ae9aba627627e95538fda42a5852f770 100755 (executable)
@@ -231,7 +231,7 @@ def main():
 
     # sort the list
     test_names.sort()
-    tests.sort()
+    tests.sort(key=lambda t: t.__name__)
 
     # print help
     if requested_tests[0] == "help" and len(requested_hwsim_tests) == 0: