Skip to content

Commit

Permalink
Remove check from test
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Sep 24, 2020
1 parent 2fa851c commit 31074fb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/main/snaps-state/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@ execute: |
snap remove "$SNAP_DEVMODE"
rm -f "$TESTSLIB/snaps/${SNAP_DEVMODE}/${SNAP_DEVMODE}_1.0_all.snap"
# check the command is-classic-confinement-supported works
if [[ "$SPREAD_SYSTEM" == fedora-* ]]; then
not "$TESTSTOOLS"/snaps-state is-classic-confinement-supported
elif [[ "$SPREAD_SYSTEM" == ubuntu-1* ]]; then
"$TESTSTOOLS"/snaps-state is-classic-confinement-supported
fi
# Make and install a snap by using the install-local subcommand with --classic
if "$TESTSTOOLS"/snaps-state is-classic-confinement-supported; then
if snap debug sandbox-features --required=confinement-options:classic; then
snap_path=$("$TESTSTOOLS"/snaps-state install-local "$SNAP_CLASSIC" --classic)
snap list "$SNAP_CLASSIC" | MATCH 'classic$'
snap remove "$SNAP_CLASSIC"
Expand Down

0 comments on commit 31074fb

Please sign in to comment.