tests: functional: Get rid of dependency on xvfb

This removes the dependencies xvfb and pytest-xvfb.

--splinter-headless can be used as a substitute for running tests in
headless mode.

[sunil: Edit description as running run-tests starts plinth in container]
[sunil: Retain the xauth command]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2022-04-30 12:09:53 -07:00
1 parent e070fed8e8
commit ca8c5bba4c
3 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -227,7 +227,7 @@ then
echo
fi
if [[ "{pytest_command}" =~ "--no-xvfb" ]]
if [[ "{pytest_command}" != *"--splinter-headless"* ]]
then
# Use the X11 authority file from the fbx user to run GUI programs
xauth merge /home/fbx/.Xauthority