[Qa-jenkins-scm] [jenkins.debian.net] 03/03: lvc: don't fail on missing screenshot
Holger Levsen
holger at layer-acht.org
Fri May 13 13:28:37 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 f2ce1e9aca66cd22129d4da467bc0f8526232af4
Author: Philip Hands <phil at hands.com>
Date: Fri May 13 15:00:28 2016 +0200
lvc: don't fail on missing screenshot
---
bin/lvc.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bin/lvc.sh b/bin/lvc.sh
index f0caec1..5b1e5b3 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -94,7 +94,10 @@ fi
/srv/jenkins/cucumber/bin/run_test_suite --vnc-server-only --capture-all --keep-snapshots --iso $IMAGE --tmpdir $PWD --old-iso $IMAGE -- --format pretty --format pretty_debug --out $PWD/results/debug.log /srv/jenkins/cucumber/features/step_definitions /srv/jenkins/cucumber/features/support "${@}"
-cp $(ls -t1 results/*.png | head -1) $WORKSPACE/screenshot.png
+LAST_SCREENSHOT=$(ls -t1 results/*.png | head -1)
+if [ -e "$LAST_SCREENSHOT" ] ; then
+ cp $LAST_SCREENSHOT $WORKSPACE/screenshot.png
+fi
cleanup_all
--
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