From: Tom Hughes Date: Wed, 25 Mar 2020 17:03:52 +0000 (+0000) Subject: Set QT_QPA_PLATFORM=offscreen for Ubuntu etc X-Git-Tag: live~2211 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0e902b5424aa2d0c2ffb442ce74a81540dd47c45?ds=sidebyside Set QT_QPA_PLATFORM=offscreen for Ubuntu etc Fixes #2569 --- diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 581297313..410fe578a 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -4,7 +4,7 @@ require "capybara/poltergeist" # Work around weird debian/ubuntu phantomjs # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277 # https://github.com/ariya/phantomjs/issues/14376 -ENV["QT_QPA_PLATFORM"] = "phantom" if IO.popen(["phantomjs", "--version"], :err => :close).read.empty? +ENV["QT_QPA_PLATFORM"] = "offscreen" if IO.popen(["phantomjs", "--version"], :err => :close).read.empty? ActiveSupport.on_load(:action_dispatch_system_test_case) do ActionDispatch::SystemTesting::Server.silence_puma = true