Ensure test windows are closed after cucumber run
This commit is contained in:
@@ -21,6 +21,7 @@ end
|
|||||||
|
|
||||||
After do
|
After do
|
||||||
uhwm_ensure_stop
|
uhwm_ensure_stop
|
||||||
|
x_windows_ensure_stop
|
||||||
end
|
end
|
||||||
|
|
||||||
Around '@other_wm_running' do |_, block|
|
Around '@other_wm_running' do |_, block|
|
||||||
|
@@ -72,7 +72,12 @@ module Uh
|
|||||||
end
|
end
|
||||||
|
|
||||||
def x_window_map
|
def x_window_map
|
||||||
spawn 'xev -event owner_grab_button'
|
@x_window = ChildProcess.build(*%w[xev -event owner_grab_button])
|
||||||
|
@x_window.start
|
||||||
|
end
|
||||||
|
|
||||||
|
def x_windows_ensure_stop
|
||||||
|
@x_window and @x_window.stop
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user