From 0e902b5424aa2d0c2ffb442ce74a81540dd47c45 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 25 Mar 2020 17:03:52 +0000 Subject: [PATCH] Set QT_QPA_PLATFORM=offscreen for Ubuntu etc Fixes #2569 --- test/application_system_test_case.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5