-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
many: support 'ignore-running' refresh-mode for apps
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
- Loading branch information
1 parent
6c59914
commit 33acdb6
Showing
12 changed files
with
78 additions
and
53 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
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
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
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
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
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
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
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
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,30 @@ | ||
summary: apps can request not to be tracked | ||
|
||
systems: [-ubuntu-14.04-*] | ||
|
||
prepare: | | ||
snap set system experimental.refresh-app-awareness=true | ||
snap pack test-snapd-refresh | ||
snap install --dangerous ./test-snapd-refresh_1_all.snap | ||
restore: | | ||
snap remove --purge test-snapd-refresh | ||
rm -f test-snapd-refresh_1.all.snap | ||
snap unset system experimental.refresh-app-awareness | ||
execute: | | ||
tests.cleanup defer rm -f stamp | ||
trap 'touch stamp' EXIT | ||
test-snapd-refresh.sh -c "while [ ! -e stamp ]; do sleep 1; done" & | ||
not snap install --dangerous ./test-snapd-refresh_1_all.snap | ||
touch stamp | ||
wait | ||
rm -f stamp | ||
test-snapd-refresh.refresh-allowed-sh -c "while [ ! -e stamp ]; do sleep 1; done" & | ||
snap install --dangerous ./test-snapd-refresh_1_all.snap | ||
touch stamp | ||
wait |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...1978005/test-snapd-refresh/meta/snap.yaml → ...running/test-snapd-refresh/meta/snap.yaml
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: test-snapd-refresh | ||
version: 1 | ||
architectures: [all] | ||
assumes: [app-refresh-mode] | ||
apps: | ||
sh: | ||
command: bin/sh | ||
refresh-allowed-sh: | ||
command: bin/sh | ||
refresh-allowed: true | ||
refresh-mode: ignore-running |
This file was deleted.
Oops, something went wrong.