diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-08 10:02:25 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-08 10:02:25 +0000 |
commit | 089eff7f5735b9574e2757817861021cdf2c870d (patch) | |
tree | ab6b805cd21ff0d049bef26410d1f61001dc0425 /src | |
parent | 56b73a2fe125e0f63e4330868fdc601cd391fb2c (diff) | |
download | VirtualBox-svn-089eff7f5735b9574e2757817861021cdf2c870d.tar.gz |
Validation Kit/VBoxClient: Added a test for detecting the display server using "--session-detect" in VBoxClient. bugref:10427
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@99661 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src')
-rwxr-xr-x | src/VBox/ValidationKit/tests/additions/tdAddBasic1.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py b/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py index 5f78a7f4e99..64a9b25a849 100755 --- a/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py +++ b/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py @@ -575,7 +575,12 @@ class tdAddBasic1(vbox.TestDriver): # py (self.getGuestSystemShell(oTestVm), '/sbin/rcvboxadd', 'status-user')); if fRc and oTxsSession.isSuccess(): - pass; + # Try to detect the display server running on the guest OS. + # This might fail on pure server guest OSes (no X, no Wayland). + if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 157189: + sVBoxClient = oTestVm.pathJoin(self.getGuestSystemDir(oTestVm, 'usr'), 'VBoxClient'); + fRc = self.txsRunTest(oTxsSession, 'Check display server detection', 5 * 60 * 1000, + sVBoxClient, (sVBoxClient, '--session-detect')); else: fRc = False; reporter.testFailure('User services were not reloaded'); |