Skip to content

Commit

Permalink
Makes unattended-upgrades test read-only
Browse files Browse the repository at this point in the history
Adds the "dry-run" flag so that system state is not changed during the
test.
  • Loading branch information
Conor Schaefer committed Feb 24, 2021
1 parent a6f7e02 commit 600fcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molecule/testinfra/common/test_automatic_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_unattended_upgrades_functional(host):
are up-to-date.
"""
if host.system_info.codename != "xenial":
c = host.run('sudo unattended-upgrades -d')
c = host.run('sudo unattended-upgrades --dry-run --debug')
assert c.rc == 0
expected_origins = (
"Allowed origins are: origin=Ubuntu,archive=focal, origin=Ubuntu,archive=focal-security"
Expand Down

0 comments on commit 600fcfb

Please sign in to comment.