Changeset 103806 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Mar 12, 2024 12:16:04 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 162175
- Location:
- trunk/src/VBox/ValidationKit/tests/storage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/storage/remoteexecutor.py
r103587 r103806 309 309 else: 310 310 try: 311 reporter.log("rmTree (%s) using shutil.rmtree function" % sDir); 312 shutil.rmtree(sDir); 311 if os.path.isfile(sDir): 312 reporter.log("deleting file: %s" % sDir) 313 os.remove(sDir) 314 else: 315 reporter.log("rmTree (%s) using shutil.rmtree function" % sDir); 316 shutil.rmtree(sDir); 313 317 except: 314 318 fRc = False; -
trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py
r103576 r103806 224 224 if lstPools is not None: 225 225 for sPool in lstPools: 226 fRc2 = fRc3 = False # flags for volumes and pools destruction results 226 227 lstVolumes = self._getActiveVolumesInPoolStartingWith(oExec, sPool, sVolIdStart); 227 228 reporter.log('lstVolumes: %s' % lstVolumes) … … 231 232 for sVolume in lstVolumes: 232 233 fRc2 = oExec.execBinary('zfs', ('destroy', sVolume)); 233 if not fRc2:234 fRc = fRc2235 234 reporter.log('destroying volumes ends'); 236 235 237 # Destroy the pool 238 reporter.log('destroying pools starts'); 239 fRc2 = self.destroyPool(oExec, sPool); 240 reporter.log('destroying pools ends'); 241 if not fRc2: 242 fRc = fRc2; 243 else: 236 # Destroy the pool 237 reporter.log('destroying pools starts'); 238 fRc3 = self.destroyPool(oExec, sPool); 239 reporter.log('destroying pools ends'); 240 if not (fRc2 or fRc3): 244 241 fRc = False; 245 242 else: -
trunk/src/VBox/ValidationKit/tests/storage/tdStorageBenchmark1.py
r103545 r103806 1456 1456 fMode = 0o777; 1457 1457 sDir = os.path.join(sMountPoint, 'test'); 1458 if self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', fMode):1459 sMountPoint = sDir ;1458 if os.path.exists(sDir) or self.oStorCfg.mkDirOnVolume(sMountPoint, 'test', fMode): 1459 sMountPoint = sDir 1460 1460 else: 1461 1461 reporter.error('Creating volume directory "%s" (mode %x) failed' % (sDir, fMode,));
Note:
See TracChangeset
for help on using the changeset viewer.