You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
406 B
24 lines
406 B
10 years ago
|
// !build linux,amd64
|
||
|
package scsi
|
||
|
|
||
|
import (
|
||
|
. "gopkg.in/check.v1"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
type MySuite struct{}
|
||
|
|
||
|
var _ = Suite(&MySuite{})
|
||
|
|
||
|
func Test(t *testing.T) { TestingT(t) }
|
||
|
|
||
|
func (s *MySuite) TestSCSI(c *C) {
|
||
|
var d Devices
|
||
|
err := d.Get()
|
||
|
c.Assert(err, IsNil)
|
||
|
c.Assert(len(d.List), Equals, 1)
|
||
10 years ago
|
|
||
|
c.Assert(len(d.List[0].Scsiattrmap), Not(Equals), 0)
|
||
|
c.Assert(len(d.List[0].Diskattrmap), Not(Equals), 0)
|
||
10 years ago
|
}
|