VirtualBox

Ignore:
Timestamp:
Mar 23, 2023 6:00:47 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156515
Message:

Guest Control: Changed the parameter position of the CWD parameter, so that the image name and arguments are together again (feels more natural, was part of the initial patch). bugref:8053

File:
1 edited

Legend:

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

    r99129 r99150  
    23202320        try:
    23212321            if self.oTstDrv.fpApiVer >= 7.1:
    2322                 oProcess = oGuestSession.processCreate(oTest.sCmd, oTest.sCwd,
     2322                oProcess = oGuestSession.processCreate(oTest.sCmd,
    23232323                                                       oTest.asArgs if self.oTstDrv.fpApiVer >= 5.0 else oTest.asArgs[1:],
     2324                                                       oTest.sCwd,
    23242325                                                       oTest.aEnv, oTest.afFlags, oTest.timeoutMS);
    23252326            else:
     
    28882889                reporter.log2('Starting stale process #%d...' % (i));
    28892890                if self.oTstDrv.fpApiVer >= 7.1:
    2890                     oGuestSession.processCreate(sShell, "",
     2891                    oGuestSession.processCreate(sShell,
    28912892                                                asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:], [],
     2893                                                "", # Working directory.
    28922894                                                [ vboxcon.ProcessCreateFlag_WaitForStdOut ], 30 * 1000);
    28932895                else:
     
    29272929                    reporter.log2('Starting non-stale process #%d...' % (i));
    29282930                    if self.oTstDrv.fpApiVer >= 7.1:
    2929                         oCurProc = oGuestSession.processCreate(sShell, "", asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     2931                        oCurProc = oGuestSession.processCreate(sShell, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     2932                                                               "",         # Working directory.
    29302933                                                               [], [], 0); # Infinite timeout.
    29312934                    else:
     
    29842987                    reporter.log2('Starting blocking process #%d...' % (i));
    29852988                    if self.oTstDrv.fpApiVer >= 7.1:
    2986                         oCurProc = oGuestSession.processCreate(sCmd, "", asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     2989                        oCurProc = oGuestSession.processCreate(sCmd, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     2990                                                               "", # Working directory.
    29872991                                                               [],  [], 30 * 1000);
    29882992                    else:
     
    34193423        try:
    34203424            if self.oTstDrv.fpApiVer >= 7.1:
    3421                 oGuestProcess = oGuestSession.processCreate(sImage, "",
     3425                oGuestProcess = oGuestSession.processCreate(sImage,
    34223426                                                            asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:], aEnv, afFlags,
     3427                                                            "", # Working directory.
    34233428                                                            30 * 1000);
    34243429            else:
     
    35403545        try:
    35413546            if self.oTstDrv.fpApiVer >= 7.1:
    3542                 oCurProcess = oGuestSession.processCreate(sShell, "", [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
     3547                oCurProcess = oGuestSession.processCreate(sShell, [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
     3548                                                          "", # Working directory.
    35433549                                                          [], [], 30 * 1000);
    35443550            else:
     
    35823588            try:
    35833589                if self.oTstDrv.fpApiVer >= 7.1:
    3584                     oCurProcess = oGuestSession.processCreate(sShell, "", [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
    3585                                                           [], [], 3 * 1000);
     3590                    oCurProcess = oGuestSession.processCreate(sShell, [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
     3591                                                              "", # Working directory.
     3592                                                              [], [], 3 * 1000);
    35863593                else:
    35873594                    oCurProcess = oGuestSession.processCreate(sShell, [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
     
    55775584
    55785585        for _ in xrange(100):
    5579             oProc = oGuestSession.processCreate(sCmd, "", asArgs if self.fpApiVer >= 5.0 else asArgs[1:],
     5586            oProc = oGuestSession.processCreate(sCmd, asArgs if self.fpApiVer >= 5.0 else asArgs[1:],
     5587                                                "", # Working directory.
    55805588                                                aEnv, afFlags, 30 * 1000);
    55815589
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