Skip to content

Commit

Permalink
tests: fix snap run test for debian-sid
Browse files Browse the repository at this point in the history
The snap-run test started failing on debian-sid because there was
a change to the message emitted when running strace with an
invalid option.

```
+ MATCH 'Can'\''t stat '\''invalid'\'': No such file or directory'
grep error: pattern not found, got:
/usr/bin/strace: Cannot find executable 'invalid'
error: exit status 1
```

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
  • Loading branch information
miguelpires committed May 17, 2024
1 parent a39bde5 commit 1812ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/main/snap-run/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ execute: |
echo "snap run with an invalid strace option should fail but it did not"
exit 1
fi
if os.query is-arch-linux || os.query is-opensuse tumbleweed || os.query is-fedora || os.query is-ubuntu-ge 24.04; then
if os.query is-arch-linux || os.query is-opensuse tumbleweed || os.query is-fedora || os.query is-ubuntu-ge 24.04 || os.query is-debian sid; then
MATCH "Cannot find executable 'invalid'" < stderr
else
MATCH "Can't stat 'invalid': No such file or directory" < stderr
Expand Down

0 comments on commit 1812ec3

Please sign in to comment.