mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix test search for mulled container hashes
Fixes ``` FAILED test/unit/tool_util/mulled/test_get_tests.py::test_hashed_test_search - AssertionError: assert ['bamtools --help'] == ['bamtools --help', 'samtools --help'] Right contains one more item: 'samtools --help' Full diff: - ['bamtools --help', 'samtools --help'] + ['bamtools --help'] ``` (again). The test broke with the addition of `osx-64/samtools-1.3.1-h0840685_11.tar.bz2` 4 days ago.
This commit is contained in:
@@ -297,7 +297,8 @@ def hashed_test_search(
|
||||
r.raise_for_status()
|
||||
p = "-".join(package)
|
||||
for line in r.text.split("\n"):
|
||||
if p in line:
|
||||
# include only linux-64 builds since that is hardcoded in get_anaconda_url and the only target for container builds
|
||||
if p in line and "linux-64" in line:
|
||||
build = line.split(p)[1].split(".tar.bz2")[0]
|
||||
if build == "":
|
||||
containers.append(f"{package[0]}:{package[1]}")
|
||||
|
||||
Reference in New Issue
Block a user