Changeset 70521 in vbox for trunk/src/VBox/ValidationKit/tests/storage
- Timestamp:
- Jan 10, 2018 3:49:10 PM (7 years ago)
- Location:
- trunk/src/VBox/ValidationKit/tests/storage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py
r69111 r70521 246 246 return sFileId; 247 247 248 def mkDir(self, sDir, fMode = 0 700, cMsTimeout = 30000):248 def mkDir(self, sDir, fMode = 0o700, cMsTimeout = 30000): 249 249 """ 250 250 Creates a new directory at the given location. -
trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py
r66580 r70521 319 319 sFdiskScript = ';\n'; # Single partition filling everything 320 320 if cbVol is not None: 321 sFdiskScript = ',' + str(cbVol / 512) + '\n'; # Get number of sectors321 sFdiskScript = ',' + str(cbVol // 512) + '\n'; # Get number of sectors 322 322 fRc = oExec.execBinaryNoStdOut('sfdisk', ('--no-reread', '--wipe', 'always', '-q', '-f', sDiskPath), \ 323 323 sFdiskScript); … … 430 430 if fRc: 431 431 self.oStorOs = oStorOs; 432 if isinstance(oDiskCfg, basestring):432 if utils.isString(oDiskCfg): 433 433 self.lstDisks = oStorOs.getDisksMatchingRegExp(oDiskCfg); 434 434 else: … … 591 591 return fRc; 592 592 593 def mkDirOnVolume(self, sMountPoint, sDir, fMode = 0 700):593 def mkDirOnVolume(self, sMountPoint, sDir, fMode = 0o700): 594 594 """ 595 595 Creates a new directory on the volume pointed to by the given mount point. -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r68710 r70521 1068 1068 if sMountPoint is not None: 1069 1069 # Create a directory where every normal user can write to. 1070 self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', 0 777);1070 self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', 0o777); 1071 1071 sDiskPath = sMountPoint + '/test'; 1072 1072 else: … … 1312 1312 reporter.testFailure('Failed to prepare host storage'); 1313 1313 fRc = False; 1314 self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', 0 777);1314 self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', 0o777); 1315 1315 sMountPoint = sMountPoint + '/test'; 1316 1316 reporter.testDone();
Note:
See TracChangeset
for help on using the changeset viewer.