VirtualBox

Changeset 99698 in vbox


Ignore:
Timestamp:
May 9, 2023 12:25:48 PM (19 months ago)
Author:
vboxsync
Message:

Validation Kit/VBoxClient: Postpone checking for the display server until we reached the runlevel tests (otherwise a display server might not be running yet). bugref:10427

File:
1 edited

Legend:

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

    r99691 r99698  
    586586                reporter.testDone();
    587587
    588         # Try to detect the display server running on the guest OS.
    589         # This might fail on pure server guest OSes (no X, no Wayland).
    590         if self.fpApiVer >= 7.1 and self.uRevision >= 157189:
    591             sVBoxClient = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm, '/usr'), 'VBoxClient');
    592             fRc = fRc and self.txsRunTest(oTxsSession, 'Check display server detection', 5 * 60 * 1000,
    593                                           sVBoxClient, (sVBoxClient, '-v', '-v', '--session-detect'));
    594 
    595588        return (fRc, oTxsSession);
    596589
     
    598591        """
    599592        Do run level tests.
     593
     594        Returns success status.
    600595        """
    601596
     
    612607
    613608        # Give the guest some time to build Guest Additions on system boot if needed.
    614         return self.waitForGAs(oSession, cMsTimeout = 15 * 60 * 1000, aenmWaitForRunLevels = [ eExpectedRunLevel ]);
     609        fRc = self.waitForGAs(oSession, cMsTimeout = 15 * 60 * 1000, aenmWaitForRunLevels = [ eExpectedRunLevel ]);
     610
     611        # Try to detect the display server running on the guest OS.
     612        # This might fail on pure server guest OSes (no X, no Wayland).
     613        if  fRc \
     614        and oTestVm.isLinux():
     615            if self.fpApiVer >= 7.1 and self.uRevision >= 157189:
     616                sVBoxClient = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm, '/usr'), 'VBoxClient');
     617                fRc = fRc and self.txsRunTest(oTxsSession, 'Check display server detection', 5 * 60 * 1000,
     618                                              sVBoxClient, (sVBoxClient, '-v', '-v', '--session-detect'));
     619        return fRc;
    615620
    616621    def testIGuest_additionsVersion(self, oGuest):
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