Comment 12 for bug 1579135

Revision history for this message
Jamie Strandboge (jdstrand) wrote : Re: kernel BUG on snap disconnect from within a snap

Oh, I didn't give all the steps on recreating your snap and running the tests (not sure how that happened). For posterity:

$ sudo apt-get install snapcraft
$ sudo unsquashfs /var/lib/snapd/snaps/snappy-tests_100001.snap # unpack
$ sudo chown -R jamie:jamie ./squashfs-root
$ vi ./squashfs-root/command-snappy-tests.wrapper # fix the wrapper
adjust to be:
export GOPATH=$SNAP_USER_DATA/go
mkdir "$GOPATH"
$ vi ./squashfs-root/snap.yaml # rev the version
adjust version to be: 0.1+jdstrand1
$ snapcraft snap ./squashfs-root # resquash
$ sudo snap remove snappy-tests # just be doubly sure we start from a clean state
$ sudo snap install --devmode ./snappy-tests_0.1+jdstrand1_amd64.snap # install

$ snappy-tests -check.f homeInterfaceSuite