Skip to content

Commit

Permalink
(#88) Added log messages in case of an error during restore
Browse files Browse the repository at this point in the history
  • Loading branch information
svettwer committed Nov 5, 2020
1 parent f06616f commit eccd0e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/scripts/execute_testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ restoreLogs(){
mkdir "${SAKULI_LOG_DESTINATION_FOLDER}"
fi
cat ${SAKULI_LOG_SOURCE} >> ${SAKULI_LOG_DESTINATION}
[ $? -ne 0 ] && echo -e "ERROR: Could not restore sakuli.log to ${SAKULI_LOG_DESTINATION}"

if [ -d "${SCREENSHOT_SOURCE}" ]; then
rsync ${RSYNC_OPTIONS} ${SCREENSHOT_SOURCE}/* ${SCREENSHOT_DESTINATION}
[ $? -ne 0 ] && echo -e "ERROR: Could not restore screenshots to ${SCREENSHOT_DESTINATION}"
fi
}

Expand Down

0 comments on commit eccd0e8

Please sign in to comment.