This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spread regression test for LP:1595444
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
summary: Regression check for https://bugs.launchpad.net/snap-confine/+bug/1595444 | ||
# This is blacklisted on debian because we first have to get the dpkg-vendor patches | ||
systems: [-debian-8] | ||
execute: | | ||
echo "Having installed the snapd-hacker-toolbelt snap" | ||
snap list | grep -q snapd-hacker-toolbelt || snap install snapd-hacker-toolbelt | ||
echo "We can go to a location that is available in all snaps (/tmp)" | ||
echo "We can run the 'cwd' tool from busybox and it reports /tmp" | ||
[ "$(cd /tmp && /snap/bin/snapd-hacker-toolbelt.busybox pwd)" = "/tmp" ] | ||
echo "But if we go to a location that is not available to snaps (e.g. $HOME/.cache)" | ||
echo "Then the same 'cwd' tool reports the root directory instead" | ||
mkdir -p $HOME/.cache/ | ||
[ "$(cd $HOME/.cache && /snap/bin/snapd-hacker-toolbelt.busybox pwd)" = "/" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters