~snappy-dev/snapd/master

« back to all changes in this revision

Viewing changes to cmd/snap-confine/spread-tests/regression/lp-1607796/task.yaml

  • Committer: GitHub
  • Author(s): Zygmunt Krynicki
  • Date: 2016-12-06 13:54:07 UTC
  • mfrom: (2661.2.15)
  • Revision ID: git-v1:0ac9c21d5bf0d4d7db987cbe985a49f755295d0b
Merge pull request #2268 from zyga/merged-snap-confine

many: merge snap-confine into snapd

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
summary: Check that /root is bind mounted to the real /root
 
2
# This is blacklisted on debian because we first have to get the dpkg-vendor patches
 
3
systems: [-debian-8]
 
4
prepare: |
 
5
    echo "Having installed the snapd-hacker-toolbelt snap in devmode"
 
6
    snap install --devmode snapd-hacker-toolbelt
 
7
    echo "Having added a canary file in /root"
 
8
    echo "test" > /root/canary
 
9
execute: |
 
10
    cd /
 
11
    echo "We can see the canary file in /root"
 
12
    [ "$(snapd-hacker-toolbelt.busybox cat /root/canary)" = "test" ]
 
13
restore: |
 
14
    snap remove snapd-hacker-toolbelt
 
15
    rm -f /root/canary