VirtualBox

Changeset 66580 in vbox


Ignore:
Timestamp:
Apr 15, 2017 7:08:15 PM (8 years ago)
Author:
vboxsync
Message:

ValidationKit/tests/storage: Don't use the standard ouput to construct the ramdisk path because it can contain other output from the login shell

File:
1 edited

Legend:

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

    r66531 r66580  
    225225        oDisk = None;
    226226        sRamDiskName = 'ramdisk%u' % (self.idxRamDisk,);
    227         fRc, sOut, _ = oExec.execBinary('ramdiskadm', ('-a', sRamDiskName, str(cbRamDisk)));
     227        fRc, _ , _ = oExec.execBinary('ramdiskadm', ('-a', sRamDiskName, str(cbRamDisk)));
    228228        if fRc:
    229229            self.idxRamDisk += 1;
    230             oDisk = StorageDisk(sOut.rstrip(), True);
     230            oDisk = StorageDisk('/dev/ramdisk/%s' % (sRamDiskName, ), True);
    231231
    232232        return oDisk;
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