From f103c3f8a558ff8b47cef744a342eed99fa18da2 Mon Sep 17 00:00:00 2001 From: Krzysztof Kalinowski Date: Fri, 15 Dec 2023 16:11:57 +0400 Subject: [PATCH] Ensuring that the binary with the shortest name is picked for testing --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 141112523..474fd7143 100644 --- a/noxfile.py +++ b/noxfile.py @@ -343,7 +343,7 @@ def bundle(session: nox.Session): # Pick only the shortest named executable. # All the longer ones should be for different versions, the shortest one will be the latest stable. - executable = min(str(path) for path in pathlib.Path('dist').glob('*')) + executable = min([str(path) for path in pathlib.Path('dist').glob('*')], key=lambda path: len(path)) print(f'sut_path={executable}')