VirtualBox

Ignore:
Timestamp:
May 28, 2020 12:40:39 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138318
Message:

Validation Kit/tdAddGuestCtrl.py: Simplified long arguments tests.

File:
1 edited

Legend:

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

    r84577 r84588  
    29582958        # Test very long arguments.
    29592959        if self.oTstDrv.fpApiVer >= 6.1:
    2960             if oTestVm.isWindows() \
    2961             or oTestVm.isOS2():
    2962                 sEcho = sShell;
    2963                 sEchoSuffix = '';
    2964             else:
    2965                 sEcho       = oTestVm.pathJoin(self.oTstDrv.getGuestSystemDir(oTestVm), 'echo');
    2966                 # The suffix acts as an indicator / beacon to see if the actual (random) args were received fully.
    2967                 sEchoSuffix = "-n";
    2968 
    29692960            for _ in xrange(0, 16):
     2961                if oTestVm.isWindows() \
     2962                or oTestVm.isOS2():
     2963                    sCmd   = sShell;
     2964                    asArgs = [ sShell, sShellOpt, "echo",
     2965                               self.oTestFiles.generateFilenameEx(128 * 1024, 2048), "--end-marker" ],
     2966                else:
     2967                    sCmd   = oTestVm.pathJoin(self.oTstDrv.getGuestSystemDir(oTestVm), 'echo');
     2968                    asArgs = [ sCmd,
     2969                               self.oTestFiles.generateFilenameEx(128 * 1024, 2048), "--end-marker" ],
    29702970                ## @todo Check limits; on Ubuntu with 256KB IPRT returns VERR_NOT_IMPLEMENTED.
    2971                 atExec.append([ tdTestExec(sCmd = sEcho,
    2972                                            asArgs = [ sEcho, sShellOpt,
    2973                                                       self.oTestFiles.generateFilenameEx(128 * 1024, 2048), sEchoSuffix ],
     2971                atExec.append([ tdTestExec(sCmd, asArgs,
    29742972                                           afFlags = [ vboxcon.ProcessCreateFlag_WaitForStdOut,
    29752973                                                       vboxcon.ProcessCreateFlag_WaitForStdErr ]),
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