refactor(testing): miscellaneous improvements and bugfixes

Includes bugfix on `tycho-indexer-client` and `protosim_py`, a script to simplify setting up testing python env and cli improvements. Also add support for building runtime for SwapAdapters with many args that was bugged before.
This commit is contained in:
Florian Pellissier
2024-08-16 15:20:55 +02:00
parent 115e552f2f
commit bc2cd6bab2
9 changed files with 60 additions and 16 deletions

View File

@@ -27,12 +27,15 @@ def find_binary_file(file_name):
# Check each location
for location in locations:
potential_path = location + "/" + file_name
potential_path = os.path.join(location, file_name)
if os.path.exists(potential_path):
return potential_path
# If binary is not found in the usual locations, return None
raise RuntimeError("Unable to locate tycho-indexer binary")
searched_paths = "\n".join(locations)
raise RuntimeError(
f"Unable to locate {file_name} binary. Searched paths:\n{searched_paths}"
)
binary_path = find_binary_file("tycho-indexer")