From 96e9ab5712f652b0f5610d956ce44427a25da835 Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Tue, 16 Jun 2020 15:55:18 -0700 Subject: [PATCH] Moved secrets check to before running coverage (#1501) --- unit_tests/ci_gcov.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unit_tests/ci_gcov.sh b/unit_tests/ci_gcov.sh index e77c0ae8d1..6d501f3cbd 100755 --- a/unit_tests/ci_gcov.sh +++ b/unit_tests/ci_gcov.sh @@ -5,6 +5,11 @@ # this scripts replaces run_gcov.sh # +if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then + echo "No Secrets" + exit 0 +fi + rm -rf gcov_working_area mkdir gcov_working_area @@ -31,10 +36,5 @@ echo -e "\nGenerating HTML" genhtml coverage.info --output-directory gcov echo -e "\nUploading HTML" -if [ $1 ] && [ $2 ] && [ $3 ]; then - ncftpput -m -R -v -u "$1" -p "$2" "$3" /unit_tests_coverage gcov/* -else - echo "Error: FTP server details seem to be missing" - exit 1 -fi +ncftpput -m -R -v -u "$1" -p "$2" "$3" /unit_tests_coverage gcov/*