VirtualBox

Ignore:
Timestamp:
Feb 5, 2024 11:39:49 AM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161468
Message:

Validation Kit/tdAddGuestCtrl.py: Use the new VBoxGuestControlHelper binary to test in which Windows session guest processes are being started. Factored out the guest process execution code to a helper function so that it can be used also for VBoxGuestControlHelper [build fix]. bugref:10586

File:
1 edited

Legend:

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

    r103200 r103201  
    16261626        for sCurPath in asPaths:
    16271627            reporter.log2('Checking for \"%s\" ...' % (sCurPath));
    1628             if self.txsIsFile(oSession, oTxsSession, sCurPath, fIgnoreErrors = True):
     1628            if self.oTstDrv.txsIsFile(oSession, oTxsSession, sCurPath, fIgnoreErrors = True):
    16291629                return (True, sCurPath);
    16301630        reporter.error('Unable to find guest binary in any of these places:\n%s' % ('\n'.join(asPaths),));
     
    25352535        return fRc;
    25362536
    2537     def executeGstCtlHelper(self, oSession, oTxsSession, oGuestSession, asArgs, asEnv = [], sCwd = '', timeoutMS = 30 * 1000):
     2537    def executeGstCtlHelper(self, oSession, oTxsSession, oGuestSession, asArgs, asEnv = None, sCwd = '', timeoutMS = 30 * 1000):
    25382538        """
    25392539        Wrapper to invoke the Guest Control Helper on the guest.
     
    25582558                asArgs2 = [ self.sGstCtlHelperExe ];
    25592559                asArgs2.append(asArgs); # Always set argv0.
     2560                if not asEnv:
     2561                    asEnv = [];
    25602562                aeWaitFor = [ vboxcon.ProcessWaitForFlag_Terminate, \
    25612563                              vboxcon.ProcessWaitForFlag_StdOut, \
     
    27142716            # Test in which Windows session Guest Control processes are being started.
    27152717            # We don't want them to be started in session 0, as this would prevent desktop interaction and other stuff.
    2716             fRc, eExitStatus, iExitCode, cbStdOut, cbStdErr, sBuf = \
     2718            fRc, eExitStatus, iExitCode, _, _, _ = \
    27172719                self.executeGstCtlHelper(oSession, oTxsSession, oGuestSession, [ "show", "win-session-id" ]);
    27182720            if  fRc \
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