[Qa-jenkins-scm] [jenkins.debian.net] 04/05: lvc: forget live_screenshots, since we don't see them on pb10 anyway
Holger Levsen
holger at layer-acht.org
Sat Jul 23 22:35:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 19cf94b81b2c22c9baf73190e977cf2bc33d2450
Author: Philip Hands <phil at hands.com>
Date: Sat Jul 23 20:24:48 2016 +0200
lvc: forget live_screenshots, since we don't see them on pb10 anyway
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/lvc.sh | 12 ++++++------
cucumber/features/step_definitions/snapshots.rb | 19 -------------------
2 files changed, 6 insertions(+), 25 deletions(-)
diff --git a/bin/lvc.sh b/bin/lvc.sh
index 3b26c90..4403f72 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -35,12 +35,12 @@ fi
cleanup_all() {
find . -name \*.vlog.png -print0 | xargs -0 -r rm
- echo "Trying to preserve last screenshot…"
- LAST_SCREENSHOT=$(ls -t1 $RESULTS/*.png | head -1)
- if [ -e "$LAST_SCREENSHOT" ] ; then
- cp $LAST_SCREENSHOT $WORKSPACE/screenshot.png
- convert $WORKSPACE/screenshot.png -adaptive-resize 128x96 $WORKSPACE/screenshot-thumb.png
- fi
+ #echo "Trying to preserve last screenshot…"
+ #LAST_SCREENSHOT=$(ls -t1 $RESULTS/*.png | head -1)
+ #if [ -e "$LAST_SCREENSHOT" ] ; then
+ # cp $LAST_SCREENSHOT $WORKSPACE/screenshot.png
+ # convert $WORKSPACE/screenshot.png -adaptive-resize 128x96 $WORKSPACE/screenshot-thumb.png
+ #fi
}
fetch_if_newer() {
diff --git a/cucumber/features/step_definitions/snapshots.rb b/cucumber/features/step_definitions/snapshots.rb
index 4552ce5..5583fb2 100644
--- a/cucumber/features/step_definitions/snapshots.rb
+++ b/cucumber/features/step_definitions/snapshots.rb
@@ -51,27 +51,11 @@ def checkpoints
return cp
end
-def live_screenshot()
- debug_log("debug: publishing live screenshot.")
- screen_capture = @screen.capture
- p = screen_capture.getFilename
- if File.exist?(p)
- s = ENV['WORKSPACE']
- s_path = "#{s}/screenshot.png"
- FileUtils.mv(p, s_path)
- convert = IO.popen(['convert',
- s_path, '-adaptive-resize', '128x96', "#{s}/screenshot-thumb.png",
- :err => ['/dev/null', 'w'],
- ])
- end
-end
-
def reach_checkpoint(name)
scenario_indent = " "*4
step_indent = " "*6
step "a computer"
- live_screenshot
if VM.snapshot_exists?(name)
$vm.restore_snapshot(name)
post_snapshot_restore_hook
@@ -104,16 +88,13 @@ def reach_checkpoint(name)
debug_log(scenario_indent +
"Step failed while creating checkpoint: #{s}",
:color => :red)
- live_screenshot
raise e
end
- live_screenshot
debug_log(step_indent + "#{step_action} #{s}", :color => :green)
step_action = "And"
end
$vm.save_snapshot(name)
end
- live_screenshot
end
# For each checkpoint we generate a step to reach it.
--
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