Skip to content

Commit

Permalink
snap: switch the auto-import dir to /run/snapd/auto-import
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Oct 25, 2016
1 parent 57ba101 commit a1c5b68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dirs/dirs.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func SetRootDir(rootdir string) {
SnapSocket = filepath.Join(rootdir, "/run/snapd-snap.socket")

SnapAssertsDBDir = filepath.Join(rootdir, snappyDir, "assertions")
SnapAssertsSpoolDir = filepath.Join(rootdir, snappyDir, "auto-import")
SnapAssertsSpoolDir = filepath.Join(rootdir, "run/snapd/auto-import")

SnapStateFile = filepath.Join(rootdir, snappyDir, "state.json")

Expand Down
8 changes: 4 additions & 4 deletions tests/main/snap-auto-import-asserts-spools/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ execute: |
echo "`snap auto-import` spooled assertions if it can not talk to snapd"
snap auto-import
ls /var/lib/snapd/auto-import
ls /run/snapd/auto-import
umount /mnt
systemctl start snapd.service snapd.socket
echo "`snap auto-import` reads from the auto-import dir"
snap auto-import
snap known account-key | grep "name: test-store"
nr=$(ls /var/lib/snapd/auto-import|wc -l)
nr=$(ls /run/snapd/auto-import|wc -l)
if [ "$nr" != "0" ]; then
echo "Expected an empty /var/lib/snapd/auto-import got:"
ls /var/lib/snapd/auto-import
echo "Expected an empty /run/snapd/auto-import got:"
ls /run/snapd/auto-import
exit 1
fi

0 comments on commit a1c5b68

Please sign in to comment.