[Qa-jenkins-scm] [jenkins.debian.net] 01/03: lvc: working attempt at live-screenshots
Holger Levsen
holger at layer-acht.org
Sat May 21 17:08:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch h01ger/WIP-cucumber-live-screenshot
in repository jenkins.debian.net.
commit 8c3aaec985df3808ce20ea4fa3c3bc2a241f6abe
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat May 21 18:02:36 2016 +0200
lvc: working attempt at live-screenshots
---
cucumber/features/support/hooks.rb | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/cucumber/features/support/hooks.rb b/cucumber/features/support/hooks.rb
index b3bdece..94f1200 100644
--- a/cucumber/features/support/hooks.rb
+++ b/cucumber/features/support/hooks.rb
@@ -206,6 +206,20 @@ end
# hooks added dynamically via add_after_scenario_hook() are supposed to
# truly be last.
After('@product') do |scenario|
+ # h01ger's attempt to save live screenshots
+ screen_capture = @screen.capture
+ p = screen_capture.getFilename
+ info_log("h01ger debug p = #{p}")
+ s = ENV['WORKSPACE']
+ s_path = "#{s}/screenshot.png"
+ FileUtils.mv(p, s_path)
+ info_log("h01ger debug s_path = #{s_path}")
+ convert = IO.popen(['convert',
+ s_path, '-adaptive-resize', '128x96', "#{s}/screenshot-thumb.png",
+ :err => ['/dev/null', 'w'],
+ ])
+ info_log("h01ger debug ende")
+ # end h01ger
if @video_capture_pid
# We can be incredibly fast at detecting errors sometimes, so the
# screen barely "settles" when we end up here and kill the video
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list