Add linux scsi disk detection and attribute mapping

This commit is contained in:
Harshavardhana
2014-12-17 03:10:48 -08:00
parent fa52e8b355
commit e5953acf4b
5 changed files with 229 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
// !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)
}