diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2020-06-25 09:28:57 +0200 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2020-06-25 09:28:57 +0200 |
| commit | f40ed889faf5b23735f46554667300484ad60915 (patch) | |
| tree | 6c2bb4b691a2cc03aba1a1a491c935c151c7f38d | |
| parent | dc13f0886acec77aae1f68418ae03d8923850e2c (diff) | |
tests: fix incorrect check in smoke/remove testautopkgtest-groovy-fixes
The remove test can easily be confused if there are snaps like test-snapd-sh-core20. This commit fixes the test by not using grep.
| -rw-r--r-- | tests/smoke/remove/task.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/smoke/remove/task.yaml b/tests/smoke/remove/task.yaml index 9f71004980..e5c9d7bd39 100644 --- a/tests/smoke/remove/task.yaml +++ b/tests/smoke/remove/task.yaml @@ -13,7 +13,7 @@ execute: | snap remove test-snapd-sh test ! -d "$SNAP_MOUNT_DIR/test-snapd-sh" - if snap list | grep -E ^test-snapd-sh; then + if snap list test-snapd-sh; then echo "test-snapd-sh should be removed but it is not" snap list exit 1 |
