Skip to content

Commit

Permalink
Merge pull request #7151 from zyga/fix/leaky-test-i
Browse files Browse the repository at this point in the history
tests: remove local revision of core
  • Loading branch information
zyga authored Jul 25, 2019
2 parents 5399f62 + 21b28db commit c7f8c5e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/main/snap-userd-reexec/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ execute: |
echo "Ensure the dbus service file got created"
test -f /usr/share/dbus-1/services/io.snapcraft.Launcher.service
diff -u /usr/share/dbus-1/services/io.snapcraft.Launcher.service.orig /usr/share/dbus-1/services/io.snapcraft.Launcher.service
restore: |
#shellcheck source=tests/lib/dirs.sh
. "$TESTSLIB"/dirs.sh
# Remove the locale revision of core, if we installed one.
if [ "$(readlink "$SNAP_MOUNT_DIR/core/current")" = x1 ]; then
snap revert core
snap remove --revision=x1 core
fi

0 comments on commit c7f8c5e

Please sign in to comment.