Skip to content

Commit

Permalink
Merge pull request #7 from hnez/rauc-info-cert
Browse files Browse the repository at this point in the history
test_rauc: enable the devel cert before using rauc info
  • Loading branch information
SmithChart authored Nov 19, 2024
2 parents 0704a04 + 14fbe7c commit f70059e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_rauc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f70059e

Please sign in to comment.