VirtualBox

Changeset 72729 in vbox


Ignore:
Timestamp:
Jun 28, 2018 5:15:35 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123265
Message:

tdAddGuestCtrl.py: Drop 'stupid trickery' and just use self.oTstDrv.sVBoxValidationKitIso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r72728 r72729  
    31413141        # exceeding the free space of the test VMs. Especially as this used
    31423142        # the very big (and quickly growing) validation kit ISO originally.
    3143 
    3144         sTestFileBig = self.oTstDrv.getFullResourceName('5.3/guestctrl/50mb_rnd.dat')
     3143        sTestFileBig = self.oTstDrv.getFullResourceName('5.3/guestctrl/50mb_rnd.dat');
    31453144        if not os.path.isfile(sTestFileBig):
    3146             sTestFileBig = self.oTstDrv.getGuestAdditionsIso()
     3145            sTestFileBig = self.oTstDrv.getGuestAdditionsIso();
    31473146        if sTestFileBig == '' or not os.path.isfile(sTestFileBig):
    3148             # Some stupid trickery to guess the location of the validation kit iso.
    3149             sTestFileBig = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../VBoxValidationKit.iso'));
    3150             if not os.path.isfile(sTestFileBig):
    3151                 sTestFileBig = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../VBoxTestSuite.iso'));
    3152             if not os.path.isfile(sTestFileBig):
    3153                 sCur = os.getcwd();
    3154                 for i in range(0, 10):
    3155                     sTestFileBig = os.path.join(sCur, 'validationkit/VBoxValidationKit.iso');
    3156                     if os.path.isfile(sTestFileBig):
    3157                         break;
    3158                     sTestFileBig = os.path.join(sCur, 'testsuite/VBoxTestSuite.iso');
    3159                     if os.path.isfile(sTestFileBig):
    3160                         break;
    3161                     sCur = os.path.abspath(os.path.join(sCur, '..'));
    3162                     if i is None: pass; # shut up pychecker/pylint.
    3163 
     3147            sTestFileBig = self.oTstDrv.sVBoxValidationKitIso;
    31643148        if os.path.isfile(sTestFileBig):
    31653149            reporter.log('Test file for big copy found at: %s' % (sTestFileBig,));
Note: See TracChangeset for help on using the changeset viewer.

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