From a1592e2c6d6e9768a1918f3c59b74d6d19033a55 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 26 Nov 2015 17:44:18 -0500 Subject: [PATCH] 7851: Use a random display (:100-:499 = port 6100-6499) for Xvfb, instead of always :99. --- apps/workbench/test/integration_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index c0e930aa95..74072caaad 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -86,8 +86,10 @@ end module HeadlessHelper class HeadlessSingleton + @display = ENV['ARVADOS_TEST_HEADLESS_DISPLAY'] || rand(400)+100 + STDERR.puts "Using display :#{@display} for headless tests" def self.get - @headless ||= Headless.new reuse: false + @headless ||= Headless.new reuse: false, display: @display end end -- 2.30.2