Skip to content

Commit

Permalink
Ensuring that the binary with the shortest name is picked for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalinowski-reef committed Dec 15, 2023
1 parent 2b55e39 commit f103c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')


Expand Down

0 comments on commit f103c3f

Please sign in to comment.