Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 76407e9a authored by Harald Sitter's avatar Harald Sitter 🌼

disable all test isolation for build.kde builds

not worth the effort. rely on the CI tooling to bring up everything.
hope other tests don't mess with our environment.

in KDE tests are not isolated, have no teardown, have implicit setup,
inter-depend on one another (which in turn makes them depend on execution
order). and everyone accepts that. it is depressing me to no end how shit
this is.
parent 1e42adf7
......@@ -22,12 +22,23 @@ require 'fileutils'
require 'optparse'
require 'tmpdir'
class Isolator
def dbus_run(cmd)
warn dbus_run_cmd(cmd)
def dbus_run_cmd(cmd)
"dbus-run-session -- #{cmd}"
# Isolates GUI via xephyr
class XephyrIsolator
class XephyrIsolator < Isolator
def run(cmd)
ephemeral('Xephyr -screen 1024x768x24+32 :666') do
ENV['DISPLAY'] = ':666'
system(cmd) || raise
dbus_run(cmd) || raise
......@@ -43,15 +54,16 @@ class XephyrIsolator
# Isolates GUI via xvfb-run
class XvfbIsolator
class XvfbIsolator < Isolator
def run(cmd)
warn "xvfb-run -a --server-args=\"-screen 0 1024x768x24\" #{cmd}"
system("xvfb-run -a --server-args=\"-screen 0 1024x768x24\" #{cmd}") || raise
warn "xvfb-run -a --server-args=\"-screen 0 1024x768x24\" #{dbus_run_cmd(cmd)}"
system("xvfb-run -a --server-args=\"-screen 0 1024x768x24\" #{dbus_run_cmd(cmd)}") || raise
class NoIsolator
class NoIsolator < Isolator
def run(cmd)
# No X11 and no DBus isolation.
warn cmd.to_s
system(cmd) || raise
......@@ -88,7 +100,7 @@ Dir.mktmpdir do |tmpdir|
ENV['HOME'] = tmpdir
ENV.keys.each { |k| ENV.delete(k) if k.start_with?('XDG_') }
Dir.glob("#{__dir__}/*_test.rb").each do |test|"dbus-run-session -- ruby '#{test}' -p")"ruby '#{test}' -p")
sleep 2 # Wait a bit to make sure all children are dead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment