summaryrefslogtreecommitdiffstats
path: root/run_test_suite
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-11-01 02:03:56 +0100
committerTails developers <amnesia@boum.org>2012-11-01 04:30:54 +0100
commitecd96fe240b496a4d7befcf33860a5d91696497b (patch)
tree3e2bc2449d149cf65260fa97ebd70b5c9fbc6d00 /run_test_suite
parent66306875d56160446c17db28f6ebcc500bbd71e2 (diff)
Make VNC viewer/server optional.
Diffstat (limited to 'run_test_suite')
-rwxr-xr-xrun_test_suite15
1 files changed, 13 insertions, 2 deletions
diff --git a/run_test_suite b/run_test_suite
index 6afafd6..ce59fab 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -27,9 +27,20 @@ start_vnc_viewer() {
start_xvfb
-# FIXME: make this optional
-if true; then
+if [ "${1}" = "--view" ]; then
+ VNC_VIEWER=yes
+ VNC_SERVER=yes
+ shift
+elif [ "${1}" = "--vnc-server-only" ]; then
+ VNC_VIEWER=
+ VNC_SERVER="yes"
+ shift
+fi
+
+if [ -n "${VNC_SERVER}" ]; then
start_vnc_server
+fi
+if [ -n "${VNC_VIEWER}" ]; then
start_vnc_viewer
fi