Ensure test windows are closed after cucumber run

This commit is contained in:
Thibault Jouan 2015-04-16 12:19:11 +00:00
parent 0a8a6bc5fb
commit 36e105bb42
2 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,7 @@ end
After do
uhwm_ensure_stop
x_windows_ensure_stop
end
Around '@other_wm_running' do |_, block|

View File

@ -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