VirtualBox

Ignore:
Timestamp:
Feb 26, 2024 5:02:26 PM (9 months ago)
Author:
vboxsync
Message:

ValKit, storagecfg.py, cleanupLeftovers() function fix, added a bit of cleaning for sOutput received from execBinary function; utils/TestExecServ/win/vboxtxs.reg, added key for disabling UAC

File:
1 edited

Legend:

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

    r103572 r103576  
    123123        if fRc:
    124124            lstPools = [];
    125             asPools = sOutput.splitlines();
    126             reporter.log('asPools: %s' % asPools);
     125            asPools = re.sub("b'|'", "", sOutput).rstrip("\\n").split("\\n")  # as sOutput could look like "b'blabla'"
     126            reporter.log('asPools: %s' % asPools)                             # plus delete excessive end-of-line
    127127            for sPool in asPools:
    128128                oMatchResult = re.match("%s[0-9]?[0-9]?" % sPoolIdStart, sPool)  # either re.Match obj or None
     
    141141        if fRc:
    142142            lstVolumes = [];
    143             asVolumes = sOutput.splitlines();
    144             reporter.log('asVolumes: %s' % asVolumes);
     143            asVolumes = re.sub("b'|'", "", sOutput).rstrip("\\n").split("\\n")  # as sOutput could look like "b'blabla'"
     144            reporter.log('asVolumes: %s' % asVolumes)                           # plus delete excessive end-of-line
    145145            for sVolume in asVolumes:
    146146                oMatchResult = re.match("%s/%s" % (sPool, sVolumeIdStart), sVolume)  # either re.Match obj or None
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