소스 검색

changed to use sdb and sdc for raid test case

Toby Chui 1 년 전
부모
커밋
e874328346
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      mod/disk/raid/raid_test.go

+ 3 - 3
mod/disk/raid/raid_test.go

@@ -11,15 +11,15 @@ func TestCreateRAIDDevice(t *testing.T) {
 	//Create an empty Manager
 	manager, _ := raid.NewRaidManager(raid.Options{})
 
-	// Make sure the loop0 and loop1 devies are mounted with automount.sh
+	// Make sure the sdb and sdc exists when running test case in VM
 	devName, _ := raid.GetNextAvailableMDDevice()
 	raidLevel := 1
-	raidDeviceIds := []string{"/dev/loop0", "/dev/loop1"}
+	raidDeviceIds := []string{"/dev/sdb", "/dev/sdc"}
 	spareDeviceIds := []string{}
 
 	//Format the drives
 	for _, partion := range raidDeviceIds {
-		fmt.Printf("Wiping partition: " + partion)
+		fmt.Println("Wiping partition: " + partion)
 		err := manager.WipeDisk(partion)
 		if err != nil {
 			t.Errorf("Disk wipe error: %v", err)