From 3028081fa29c936b9d0aa0b040ccc3c503770ea3 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Tue, 24 Sep 2024 22:08:15 +0800 Subject: [PATCH] chore: fix exit code in runtest.sh --- _lldb/runtest.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_lldb/runtest.sh b/_lldb/runtest.sh index c1047ac9..143c505d 100755 --- a/_lldb/runtest.sh +++ b/_lldb/runtest.sh @@ -4,7 +4,8 @@ set -e # Source common functions and variables # shellcheck source=./_lldb/common.sh -source "$(dirname "$0")/common.sh" +# shellcheck disable=SC1091 +source "$(dirname "$0")/common.sh" || exit 1 # Parse command-line arguments package_path="$DEFAULT_PACKAGE_PATH" @@ -34,7 +35,7 @@ while [[ $# -gt 0 ]]; do done # Build the project -build_project "$package_path" +build_project "$package_path" || exit 1 # Prepare LLDB commands lldb_commands=( @@ -53,4 +54,4 @@ for cmd in "${lldb_commands[@]}"; do lldb_command_string+=" -O \"$cmd\"" done -eval "$LLDB_PATH $lldb_command_string" +eval "$LLDB_PATH $lldb_command_string" || exit 1