From 14fbe7c9813ae873fa0a4ded3a079e8d1501de0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Date: Tue, 19 Nov 2024 08:18:19 +0100 Subject: [PATCH] test_rauc: enable the devel cert before using rauc info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The devel certificate is not enabled by default, but it is used to sign the bundle that is used for the `rauc info` call. Since `rauc info` checks the validity of this certificate the test fails without this change. Signed-off-by: Leonard Göhrs --- tests/test_rauc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_rauc.py b/tests/test_rauc.py index 0b89cc8..c4567e6 100644 --- a/tests/test_rauc.py +++ b/tests/test_rauc.py @@ -39,6 +39,11 @@ def test_rauc_info_json(shell, rauc_bundle): Test rauc info output in JSON for a rauc bundle read via http. """ + # Bundles during testing are not signed with release keys. + # But the development key is not enabled by default. + # So we need to enable it first. + shell.run_check("rauc-enable-cert devel.cert.pem") + # Let rauc read the info for the rauc bundle. # The diversion via the tmp-file allows us to ignore any output on stderr that rauc may output. shell.run_check(f"rauc info {rauc_bundle()} --output-format=json > /tmp/rauc.json")