Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eaudetcobello committed Jan 28, 2025
1 parent a55b62e commit 279671e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/tests/test_version_upgrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def test_version_upgrades(instances: List[harness.Instance], tmp_path):

# Log the current snap version on the node.
out = cp.exec(["snap", "list", config.SNAP_NAME], capture_output=True)
LOG.info(f"Current snap version: {out.stdout.decode().strip()}")
latest_version = out.stdout.decode().strip().split("\n")[-1]
LOG.info(f"Current snap version: {latest_version}")

# note: the `--classic` flag will be ignored by snapd for strict snaps.
cp.exec(
Expand Down Expand Up @@ -119,7 +120,8 @@ def test_version_downgrades_with_rollback(instances: List[harness.Instance], tmp
f">>> Initiating downgrade + rollback segment from {current_channel}{channel}"
)
out = cp.exec(["snap", "list", config.SNAP_NAME], capture_output=True)
LOG.info(f"Current snap version: {out.stdout.decode().strip().split('\n')[-1]}")
latest_version = out.stdout.decode().strip().split("\n")[-1]
LOG.info(f"Current snap version: {latest_version}")

LOG.info(f"Step 1. Downgrade {cp.id} from {current_channel}{channel}")
# note: the `--classic` flag will be ignored by snapd for strict snaps.
Expand Down

0 comments on commit 279671e

Please sign in to comment.