~mvo/snappy/snappy-lp1460152-workaround

« back to all changes in this revision

Viewing changes to snappy/snapp_test.go

  • Committer: Snappy Tarmac
  • Author(s): John R. Lenton
  • Date: 2015-05-18 20:42:06 UTC
  • mfrom: (457.1.6 debsig-verify-to-clickdeb)
  • Revision ID: snappy_tarmac-20150518204206-ahp5m7cv2ftv7gfe
Moved debsig-verify validation under clickdeb. by chipaca approved by sergiusens

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        "path/filepath"
29
29
        "strings"
30
30
 
 
31
        "launchpad.net/snappy/clickdeb"
31
32
        "launchpad.net/snappy/helpers"
32
33
        "launchpad.net/snappy/partition"
33
34
        "launchpad.net/snappy/policy"
69
70
 
70
71
        // we may not have debsig-verify installed (and we don't need it
71
72
        // for the unittests)
72
 
        runDebsigVerify = func(snapFile string, allowUnauth bool) (err error) {
73
 
                return nil
74
 
        }
 
73
        clickdeb.VerifyCmd = "true"
75
74
        systemd.SystemctlCmd = func(cmd ...string) ([]byte, error) {
76
75
                return []byte("ActiveState=inactive\n"), nil
77
76
        }