当前位置: 首页>>代码示例>>Python>>正文


Python base.TestDriverBase类代码示例

本文整理汇总了Python中testdriver.base.TestDriverBase的典型用法代码示例。如果您正苦于以下问题:Python TestDriverBase类的具体用法?Python TestDriverBase怎么用?Python TestDriverBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TestDriverBase类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: actionAbort

 def actionAbort(self):
     """
     Forward this to the sub testdriver first, then wipe all VBox like
     processes, and finally do the pid file processing (again).
     """
     fRc1 = self._executeSubDriver([ 'abort', ], fMaySkip = False);
     fRc2 = self._killAllVBoxProcesses();
     fRc3 = TestDriverBase.actionAbort(self);
     return fRc1 and fRc2 and fRc3;
开发者ID:mdaniel,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:9,代码来源:vboxinstaller.py

示例2: actionAbort

 def actionAbort(self):
     """
     Forward this to the sub testdriver first, then do the default pid file
     based cleanup and finally swipe the scene with the heavy artillery.
     """
     fRc1 = self._executeSubDriver([ 'abort', ]);
     fRc2 = TestDriverBase.actionAbort(self);
     fRc3 = self._killAllVBoxProcesses();
     return fRc1 and fRc2 and fRc3;
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:9,代码来源:vboxinstaller.py

示例3: parseOption

 def parseOption(self, asArgs, iArg):
     if asArgs[iArg] == '--test':
         iArg = self.requireMoreArgs(1, asArgs, iArg);
         if asArgs[iArg] not in self.kasValidTests:
             raise InvalidOption('Invalid test name "%s". Must be one of: %s'
                                 % (asArgs[iArg], ', '.join(self.kasValidTests),));
         self.sOptWhich = asArgs[iArg];
     else:
         return TestDriverBase.parseOption(self, asArgs, iArg);
     return iArg + 1;
开发者ID:mcenirm,项目名称:vbox,代码行数:10,代码来源:tdSelfTest4.py

示例4: showUsage

 def showUsage(self):
     rc = TestDriverBase.showUsage(self);
     #             0         1         2         3         4         5         6         7         8
     #             012345678901234567890123456789012345678901234567890123456789012345678901234567890
     reporter.log('');
     reporter.log('vboxinstaller Options:');
     reporter.log('  --vbox-build    <url[,url2[,..]]>');
     reporter.log('      Comma separated list of URL to file to download and install or/and');
     reporter.log('      unpack.  URLs without a schema are assumed to be files on the');
     reporter.log('      build share and will be copied off it.');
     reporter.log('  --no-puel-extpack');
     reporter.log('      Indicates that the PUEL extension pack should not be installed if found.');
     reporter.log('      The default is to install it if found in the vbox-build.');
     reporter.log('  --');
     reporter.log('      Indicates the end of our parameters and the start of the sub');
     reporter.log('      testdriver and its arguments.');
     return rc;
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:17,代码来源:vboxinstaller.py

示例5: completeOptions

    def completeOptions(self):
        #
        # Check that we've got what we need.
        #
        if len(self._asBuildUrls) == 0:
            reporter.error('No build files specfiied ("--vbox-build file1[,file2[...]]")');
            return False;
        if len(self._asSubDriver) == 0:
            reporter.error('No sub testdriver specified. (" -- test/stuff/tdStuff1.py args")');
            return False;

        #
        # Construct _asBuildFiles as an array parallel to _asBuildUrls.
        #
        for sUrl in self._asBuildUrls:
            sDstFile = os.path.join(self.sScratchPath, webutils.getFilename(sUrl));
            self._asBuildFiles.append(sDstFile);

        return TestDriverBase.completeOptions(self);
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:19,代码来源:vboxinstaller.py

示例6: actionCleanupAfter

    def actionCleanupAfter(self):
        """
        Forward this to the sub testdriver, then uninstall VBox.
        """
        fRc = True;
        if 'execute' not in self.asActions and 'all' not in self.asActions:
            fRc = self._executeSubDriver([ 'cleanup-after', ]);

        if not self._killAllVBoxProcesses():
            fRc = False;

        if not self._uninstallVBox(self._persistentVarExists(self.ksVar_Skipped)):
            fRc = False;

        if utils.getHostOs() == 'darwin':
            self._darwinUnmountDmg(fIgnoreError = True); # paranoia

        if not TestDriverBase.actionCleanupAfter(self):
            fRc = False;

        return fRc;
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:21,代码来源:vboxinstaller.py

示例7: parseOption

 def parseOption(self, asArgs, iArg):
     """
     Parse our arguments.
     """
     if asArgs[iArg] == '--':
         # End of our parameters and start of the sub driver invocation.
         iArg = self.requireMoreArgs(1, asArgs, iArg);
         assert len(self._asSubDriver) == 0;
         self._asSubDriver = asArgs[iArg:];
         self._asSubDriver[0] = self._asSubDriver[0].replace('/', os.path.sep);
         iArg = len(asArgs) - 1;
     elif asArgs[iArg] == '--vbox-build':
         # List of files to copy/download and install.
         iArg = self.requireMoreArgs(1, asArgs, iArg);
         self._asBuildUrls = asArgs[iArg].split(',');
     elif asArgs[iArg] == '--no-puel-extpack':
         self._fAutoInstallPuelExtPack = False;
     elif asArgs[iArg] == '--puel-extpack':
         self._fAutoInstallPuelExtPack = True;
     else:
         return TestDriverBase.parseOption(self, asArgs, iArg);
     return iArg + 1;
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:22,代码来源:vboxinstaller.py

示例8: __init__

 def __init__(self):
     TestDriverBase.__init__(self);
     self._asSubDriver   = [];   # The sub driver and it's arguments.
     self._asBuildUrls   = [];   # The URLs passed us on the command line.
     self._asBuildFiles  = [];   # The downloaded file names.
     self._fAutoInstallPuelExtPack = True;
开发者ID:zBMNForks,项目名称:virtualbox-org-svn-vbox-trunk,代码行数:6,代码来源:vboxinstaller.py

示例9: __init__

 def __init__(self):
     TestDriverBase.__init__(self);
开发者ID:sobomax,项目名称:virtualbox_64bit_edd,代码行数:2,代码来源:tdSelfTest2.py

示例10: __init__

 def __init__(self):
     TestDriverBase.__init__(self);
     self.sOptWhich = 'immediate-sub-tests';
开发者ID:mcenirm,项目名称:vbox,代码行数:3,代码来源:tdSelfTest4.py


注:本文中的testdriver.base.TestDriverBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。