Ubuntu Pastebin

Paste from zyga at Tue, 17 Oct 2017 05:54:42 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 32cd5e21b8380a443d0fa71d0644c9643728f598 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Date: Tue, 17 Oct 2017 07:49:35 +0200
Subject: [PATCH] systemd: reference the dummy squahsfuse module from tests

This makes the module not-unused and govendor is now happy.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
---
 systemd/systemd_test.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/systemd/systemd_test.go b/systemd/systemd_test.go
index 34ce42702..be99153cb 100644
--- a/systemd/systemd_test.go
+++ b/systemd/systemd_test.go
@@ -29,6 +29,7 @@ import (
 	"testing"
 	"time"
 
+	squashfuse "github.com/snapcore/squashfuse/dummy"
 	. "gopkg.in/check.v1"
 
 	"github.com/snapcore/snapd/dirs"
@@ -584,3 +585,7 @@ func (s *SystemdTestSuite) TestJctl(c *C) {
 	c.Assert(err, IsNil)
 	c.Check(args, DeepEquals, []string{"-o", "json", "-n", "99", "--no-pager", "-f", "-u", "foo", "-u", "bar", "-u", "baz"})
 }
+
+func (s *SystemdTestSuite) TestInternalSquashFuse(c *C) {
+	c.Assert(squashfuse.InternalSquashFusePresent(), Equals, true)
+}
-- 
2.14.1
Download as text