package-image: clarify SSH key vs firmware sanitization log

This commit is contained in:
Luxferre committed 2026-11-28 12:31:11 +02:00
1 parent 775baef460
commit 2c3278024e
2 files changed
+18 -4

No files matched your search

+3
View File
@@ -913,6 +913,8 @@ def test_release_zip_packager():
env=pkg_env, capture_output=True, text=True, check=False,
)
assert res.returncode == 0, f"package-image.sh failed:\n{res.stdout}\n{res.stderr}"
assert "stripped 4 SSH key file(s); firmware kept; e2fsck clean" in res.stdout, res.stdout
assert "firmware/key" not in res.stdout, res.stdout
assert flash_mtk.sha256_file(root_img) == orig_root_sha, "Source rootfs image was mutated!"
assert os.path.isfile(out_zip) and os.path.isfile(out_zip + ".sha256")
@@ -992,6 +994,7 @@ def test_release_zip_packager():
env=pkg_env, capture_output=True, text=True, check=False,
)
assert sres.returncode == 0, f"package-image.sh --strip-firmware failed:\n{sres.stdout}\n{sres.stderr}"
assert "stripped 4 SSH key file(s); stripped 2 firmware file(s); e2fsck clean" in sres.stdout, sres.stdout
strip_dir = os.path.join(tmp, "extracted-stripped")
os.makedirs(strip_dir, exist_ok=True)
subprocess.run(["unzip", "-q", stripped_zip, "-d", strip_dir], check=True)