diff options
author | Philip Hands <phil@hands.com> | 2016-05-13 15:00:28 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-05-13 15:27:56 +0200 |
commit | f2ce1e9aca66cd22129d4da467bc0f8526232af4 (patch) | |
tree | c5ae4122379a6d129edeec7e57078b5438d2dd84 | |
parent | de62099aa502c0615b915bf3f65770697aa2c93a (diff) | |
download | jenkins.debian.net-f2ce1e9aca66cd22129d4da467bc0f8526232af4.tar.xz |
lvc: don't fail on missing screenshot
-rwxr-xr-x | bin/lvc.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |