mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix pkg test when no souces.list exists
This commit is contained in:
parent
f2046b3a71
commit
c7220f13b9
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ def configure_loader_modules(minion_opts):
|
|||
|
||||
@pytest.fixture()
|
||||
def revert_repo_file(tmp_path):
|
||||
sources = pathlib.Path("/etc/apt/sources.list")
|
||||
if not sources.exists():
|
||||
sources.touch()
|
||||
try:
|
||||
repo_file = pathlib.Path("/etc") / "apt" / "sources.list"
|
||||
backup = tmp_path / "repo_backup"
|
||||
|
|
Loading…
Add table
Reference in a new issue