summaryrefslogtreecommitdiffstats
path: root/run_test_suite
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-02-25 15:01:51 +0100
committerTails developers <amnesia@boum.org>2013-03-08 01:47:03 +0100
commite8e61d362b5fdff6ec7b197ca3f268dc3a328ca2 (patch)
tree8f897cc34c6277542c129dfd705b6122eaaf9172 /run_test_suite
parentb858522f1b7bc0160298679e8ed3dff40d1f7c15 (diff)
Don't use xdpyinfo for testing DISPLAY availability.
xdpyinfo will fail on DISPLAYs started by other users, so it will incorrectly be treated as free.
Diffstat (limited to 'run_test_suite')
-rwxr-xr-xrun_test_suite2
1 files changed, 1 insertions, 1 deletions
diff --git a/run_test_suite b/run_test_suite
index 098c6fa..794c118 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -33,7 +33,7 @@ check_dependency() {
}
display_in_use() {
- xdpyinfo -display $1 >/dev/null 2>&1
+ [ -e "/tmp/.X${1#:}-lock" ]
}
next_free_display() {