VirtualBox

Ignore:
Timestamp:
Feb 16, 2024 8:36:27 AM (10 months ago)
Author:
vboxsync
Message:

ValidationKit/tests/storage/storagecfg.py: Yes, we use semicolons in python, period

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/storage/storagecfg.py

    r103390 r103394  
    215215        parameters.
    216216        """
    217         reporter.log('cleanupPoolsAndVolumes starts')
    218         fRc = True
     217        reporter.log('cleanupPoolsAndVolumes starts');
     218        fRc = True;
    219219        lstPools = self._getActivePoolsStartingWith(oExec, sPoolIdStart);
    220         reporter.log('lstPools: %s' % lstPools)
     220        reporter.log('lstPools: %s' % lstPools);
    221221        if lstPools is not None:
    222222            for sPool in lstPools:
     
    225225                if lstVolumes is not None:
    226226                    # Destroy all the volumes first
    227                     reporter.log('destroying volumes starts')
     227                    reporter.log('destroying volumes starts');
    228228                    for sVolume in lstVolumes:
    229229                        fRc2 = oExec.execBinary('zfs', ('destroy', sVolume));
    230230                        if not fRc2:
    231231                            fRc = fRc2
    232                     reporter.log('destroying volumes ends')
     232                    reporter.log('destroying volumes ends');
    233233
    234234                    # Destroy the pool
    235                     reporter.log('destroying pools starts')
     235                    reporter.log('destroying pools starts');
    236236                    fRc2 = self.destroyPool(oExec, sPool);
    237                     reporter.log('destroying pools ends')
     237                    reporter.log('destroying pools ends');
    238238                    if not fRc2:
    239239                        fRc = fRc2;
     
    242242        else:
    243243            fRc = False;
    244         reporter.log('cleanupPoolsAndVolumes is finished')
    245         return fRc
     244        reporter.log('cleanupPoolsAndVolumes is finished');
     245        return fRc;
    246246
    247247    def createRamDisk(self, oExec, cbRamDisk):
     
    681681        Tries to cleanup any leftover pools and volumes from a failed previous run.
    682682        """
    683         reporter.log('cleanupLeftovers starts')
     683        reporter.log('cleanupLeftovers starts');
    684684        if not self.oDiskCfg.isCfgStaticDir():
    685685            return self.oStorOs.cleanupPoolsAndVolumes(self.oExec, 'pool', 'vol');
     
    689689            for sEntry in os.listdir(self.oDiskCfg.getDisks()):
    690690                fRc = fRc and self.oExec.rmTree(os.path.join(self.oDiskCfg.getDisks(), sEntry));
    691         reporter.log('cleanupLeftovers ends')
    692         return fRc;
     691        reporter.log('cleanupLeftovers ends');
     692        return fRc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette