vbox的更動 62197 路徑 trunk/src/VBox/ValidationKit
- 時間撮記:
- 2016-7-12 下午01:37:55 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r62190 r62197 426 426 return oStorCfg.cleanup(); 427 427 428 def getGuestDisk(self, oSession, oTxsSession, eStorageController): 429 """ 430 Gets the path of the disk in the guest to use for testing. 431 """ 432 lstDisks = None; 433 434 # The naming scheme for NVMe is different and we don't have 435 # to query the guest for unformatted disks here because the disk with the OS 436 # is not attached to a NVMe controller. 437 if eStorageController == vboxcon.StorageControllerType_NVMe: 438 lstDisks = [ '/dev/nvme0n1' ]; 439 else: 440 # Find a unformatted disk (no partition). 441 # @todo: This is a hack because LIST and STAT are not yet implemented 442 # in TXS (get to this eventually) 443 lstBlkDev = [ '/dev/sda', '/dev/sdb' ]; 444 for sBlkDev in lstBlkDev: 445 fRc = oTxsSession.syncExec('/usr/bin/ls', ('ls', sBlkDev + '1')); 446 if not fRc: 447 lstDisks = [ sBlkDev ]; 448 break; 449 450 _ = oSession; 451 return lstDisks; 452 428 453 def testBenchmark(self, sTargetOs, sBenchmark, sMountpoint, oExecutor): 429 454 """ … … 548 573 lstBinaryPaths = ['/bin', '/sbin', '/usr/bin', '/usr/sbin' ]; 549 574 oExecVm = remoteexecutor.RemoteExecutor(oTxsSession, lstBinaryPaths, '${SCRATCH}'); 550 lstDisks = [ '/dev/sdb' ]; 551 # The naming scheme for NVMe is different. 552 if eStorageController == vboxcon.StorageControllerType_NVMe: 553 lstDisks = [ '/dev/nvme0n1' ]; 554 oStorCfgVm = storagecfg.StorageCfg(oExecVm, 'linux', lstDisks); 575 oStorCfgVm = storagecfg.StorageCfg(oExecVm, 'linux', self.getGuestDisk(oSession, oTxsSession, \ 576 eStorageController)); 555 577 556 578 sMountPoint = self.prepareStorage(oStorCfgVm);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器