Skip to content

Commit

Permalink
tests/main/local-install-w-metadata: account for newline in error string
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphelpsj committed Dec 10, 2024
1 parent 9e5edba commit 60bce2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/main/local-install-w-metadata/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ execute: |
snap download test-snapd-sh
echo "Try to install the snap without assertions"
(snap install test-snapd-sh_*.snap 2>&1 || true) | MATCH 'cannot find signatures with metadata for snap/component "test-snapd-sh.*\.snap"'
(snap install test-snapd-sh_*.snap 2>&1 || true) | tr '\n' ' ' | tr -s ' ' | MATCH 'cannot find signatures with metadata for snap/component "test-snapd-sh.*\.snap"'
echo "Add its assertions"
snap ack test-snapd-sh_*.assert
Expand Down

0 comments on commit 60bce2d

Please sign in to comment.