~mvo/snappy/snappy-os-snap-support

« back to all changes in this revision

Viewing changes to policy/policy_test.go

  • Committer: Snappy Tarmac
  • Author(s): John R. Lenton
  • Date: 2015-05-05 22:32:10 UTC
  • mfrom: (435.1.5 copyfile)
  • Revision ID: snappy_tarmac-20150505223210-w7oz8tnd8y2xokwj
Moved two implementations of Copy into helpers with the linux implementation being based on sendfile. by chipaca approved by sergiusens

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
        fn := filepath.Join(s.appg, "policygroups0")
119
119
        c.Assert(os.Chmod(fn, 0), IsNil)
120
120
        err := iterOp(install, filepath.Join(s.appg, "*"), s.dest, "foo_")
121
 
        c.Check(err, ErrorMatches, ".*unable to read.*")
 
121
        c.Check(err, ErrorMatches, ".*unable to open.*")
122
122
}
123
123
 
124
124
func (s *policySuite) TestIterOpInstallBadTarget(c *C) {