Ensure test windows are closed after cucumber run
This commit is contained in:
parent
0a8a6bc5fb
commit
36e105bb42
@ -21,6 +21,7 @@ end
|
||||
|
||||
After do
|
||||
uhwm_ensure_stop
|
||||
x_windows_ensure_stop
|
||||
end
|
||||
|
||||
Around '@other_wm_running' do |_, block|
|
||||
|
@ -72,7 +72,12 @@ module Uh
|
||||
end
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user