mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-23 21:51:29 +00:00
Fix new ignore feature
This commit is contained in:
parent
bb0d22c63c
commit
bb6795b172
@ -127,6 +127,7 @@ async def scan_path(
|
||||
}
|
||||
if repo_name not in repos:
|
||||
repos[repo_name] = []
|
||||
repos[repo_name].append(repo)
|
||||
|
||||
return repos
|
||||
|
||||
|
@ -35,6 +35,7 @@ async def _setup_test_baseos(directory: str):
|
||||
directory,
|
||||
"$reponame/$arch/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
return repos
|
||||
@ -63,6 +64,7 @@ async def test_scan_path_valid_structure():
|
||||
directory,
|
||||
"$reponame/$arch/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "baseos" in repos
|
||||
@ -127,6 +129,7 @@ async def test_scan_path_multiple_formats():
|
||||
directory,
|
||||
"$reponame/$arch/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "baseos" in repos
|
||||
@ -159,6 +162,7 @@ async def test_scan_path_multiple_formats():
|
||||
directory,
|
||||
"$reponame/source/tree/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "baseos" in repos
|
||||
@ -198,6 +202,7 @@ async def test_scan_path_valid_structure_arch_first():
|
||||
directory,
|
||||
"$arch/$reponame/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "baseos" in repos
|
||||
@ -250,6 +255,7 @@ async def test_fetch_updateinfo_from_apollo_live():
|
||||
directory,
|
||||
"$reponame/$arch/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "BaseOS" in repos
|
||||
@ -292,6 +298,7 @@ async def test_fetch_updateinfo_from_apollo_live_no_updateinfo():
|
||||
directory,
|
||||
"$reponame/$arch/os/repodata/repomd.xml",
|
||||
[],
|
||||
[],
|
||||
)
|
||||
|
||||
assert "BaseOS" in repos
|
||||
@ -519,6 +526,7 @@ async def test_run_apollo_tree(mocker):
|
||||
True,
|
||||
directory,
|
||||
[],
|
||||
[],
|
||||
"Rocky Linux 8 x86_64",
|
||||
)
|
||||
|
||||
@ -567,6 +575,7 @@ async def test_run_apollo_tree_arch_in_product(mocker):
|
||||
True,
|
||||
directory,
|
||||
[],
|
||||
[],
|
||||
"Rocky Linux 8 $arch",
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user