diff --git a/molecule/testinfra/common/test_release_upgrades.py b/molecule/testinfra/common/test_release_upgrades.py index 1a8b1bdb58..b821f2fbb5 100644 --- a/molecule/testinfra/common/test_release_upgrades.py +++ b/molecule/testinfra/common/test_release_upgrades.py @@ -56,6 +56,11 @@ def test_migration_check(host): contents = json.loads(cmd.stdout) print(contents) # The script did not error out + if "error" in contents: + # Run the script manually to get the error message + cmd = host.run("securedrop-noble-migration-check") + print(cmd.stdout) + # We'll fail in the next line after this assert "error" not in contents # staging CI jobs don't have enough free space, so just check # that it returned a value for it