コード例 #1
0
ファイル: activate_test.go プロジェクト: pombredanne/snappy-1
func (s *activateSuite) SetUpTest(c *check.C) {
	s.SnappySuite.SetUpTest(c)
	if common.Release(c) == "15.04" {
		c.Skip("activate CLI command not available on 15.04, reenable the test when present")
	}
	var err error
	s.snapPath, err = build.LocalSnap(c, activateSnapName)
	c.Assert(err, check.IsNil, check.Commentf("Error building local snap: %s", err))
	common.InstallSnap(c, s.snapPath)
}
コード例 #2
0
func (s *fanTestSuite) SetUpTest(c *check.C) {
	if common.Release(c) == "15.04" {
		c.Skip("Ubuntu Fan not available in 15.04")
	}

	s.SnappySuite.SetUpTest(c)
	var err error
	s.subjectIP, err = getIPAddr(c)
	c.Assert(err, check.IsNil, check.Commentf("Error getting IP address: %s", err))

	s.fanCtl(c, "up")
	s.bridgeIP = s.fanBridgeIP(c)
}