VirtualBox

Changeset 99283 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2023 1:42:26 PM (22 months ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Introduced a process create wrapper function, as the process creation code was getting way too convoluted with all those API changes and differences [pylint].

File:
1 edited

Legend:

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

    r99282 r99283  
    55715571        afFlags = [];
    55725572
    5573         for _ in xrange(100):
    5574             oProc = self.processCreateWrapper(oGuestSession, sCmd, asArgs if self.fpApiVer >= 5.0 else asArgs[1:],
    5575                                               "", # Working directory.
    5576                                               aEnv, afFlags, 30 * 1000);
    5577 
    5578             aWaitFor = [ vboxcon.ProcessWaitForFlag_Terminate ];
    5579             _ = oProc.waitForArray(aWaitFor, 30 * 1000);
     5573        # Fix this once being used (again).
     5574        #for _ in xrange(100):
     5575        #    oProc = self.processCreateWrapper(oGuestSession, sCmd, asArgs if self.fpApiVer >= 5.0 else asArgs[1:],
     5576        #                                      "", # Working directory.
     5577        #                                      aEnv, afFlags, 30 * 1000);
     5578        #
     5579        #    aWaitFor = [ vboxcon.ProcessWaitForFlag_Terminate ];
     5580        #    _ = oProc.waitForArray(aWaitFor, 30 * 1000);
    55805581
    55815582        oGuestSession.close();
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