Skip to content
Snippets Groups Projects
Commit 6a604da4 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Ensure compatibility with rpm2cpio 4.20

It seems that the cpio files generated by rpm2cpio now have filenames
with a leading `./`. Add support for this change in the test fixture (it
seems that the actual extraction isn't affected by this change).
parent 1ea3e051
No related branches found
No related tags found
1 merge request!545Ensure compatibility with rpm2cpio 4.20
Pipeline #13575 passed
......@@ -142,8 +142,8 @@ def test_download_and_extract_rpm_package(requests_mock_datadir):
assert os.path.exists(f"{tmpdir}/extracted/nginx-1.18.0.tar.gz")
with open(f"{tmpdir}/extract.log", "r") as f:
logs = f.read()
assert logs.startswith("404.html")
logs = f.readlines()
assert logs[0].strip() in ("404.html", "./404.html")
def test_extract_non_rpm_package(requests_mock_datadir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment