summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2020-03-20 13:00:12 +0100
committeranonym <anonym@riseup.net>2020-03-23 15:37:40 +0100
commit99b0557ed0b57f9b0c0405b5e1c646f97941f95e (patch)
tree6099c26368683a1a237b453c586bced0f476d73d
parentca7d987d243d2764daf349f147c55d84d4eea9f3 (diff)
run_test_suite: --view/--vnc-server-only are only supported on x11.
-rwxr-xr-xrun_test_suite4
1 files changed, 4 insertions, 0 deletions
diff --git a/run_test_suite b/run_test_suite
index 4dc92ac..c3d59e7 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -270,6 +270,10 @@ TARGET_DISPLAY=$(next_free_display)
start_xvfb
if [ -n "${VNC_SERVER:-}" ]; then
+ if [ "${XDG_SESSION_TYPE}" = "x11" ]; then
+ error "the --view and --vnc-server-only are only supported on x11," \
+ "but you use ${XDG_SESSION_TYPE}"
+ fi
start_vnc_server
fi
if [ -n "${VNC_VIEWER:-}" ]; then