From 47d6196b3273a7586d9fd3afdedcd9d2def2a66d Mon Sep 17 00:00:00 2001 From: Matej Ferencevic <matej.ferencevic@memgraph.io> Date: Mon, 4 Nov 2019 14:27:06 +0100 Subject: [PATCH] Improve binary coverage script Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2530 --- tools/coverage_binary | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/coverage_binary b/tools/coverage_binary index 2eb2ae0cb..cbad54750 100755 --- a/tools/coverage_binary +++ b/tools/coverage_binary @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e ## README # In order to use this script to make a coverage profile of any memgraph binary @@ -66,10 +66,6 @@ if [ -L "$target_path" ]; then target_path="$( readlink "$target_path" )" fi LLVM_PROFILE_FILE="$coverage_raw_file" $target_path $@ -code=$? -if [ $code -ne 0 ]; then - printf "\033[1;31mThe binary exited with a non-zero exit code ($code)!\033[0m\n" -fi # Find all source files src_files=$( find "$PROJECT_DIR/src" \( -name '*.cpp' -o -name '*.hpp' \) -print | sort | tr '\n' ' ' )