From 454e36503c676e540ec4428a777916fecf439bcb Mon Sep 17 00:00:00 2001 From: Deda Date: Sun, 25 Feb 2024 21:00:33 +0100 Subject: [PATCH] Fix code analysis --- tests/code_analysis/python_code_analysis.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/code_analysis/python_code_analysis.sh b/tests/code_analysis/python_code_analysis.sh index dcfc3aeaa..7833f444d 100755 --- a/tests/code_analysis/python_code_analysis.sh +++ b/tests/code_analysis/python_code_analysis.sh @@ -3,7 +3,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" PROJECT_ROOT="$SCRIPT_DIR/../.." BASE_BRANCH="origin/master" -if [[ "$#" -ne 1 ]]; then +if [[ "$#" -ne 2 ]]; then echo "Error: This script requires exactly 1 argument '--base-branch string', not $#" exit 1 fi @@ -21,6 +21,9 @@ while [[ "$#" -gt 0 ]]; do esac done +echo $SCRIPT_DIR +echo $PROJECT_ROOT + cd $PROJECT_ROOT CHANGED_FILES=$(git diff -U0 $BASE_BRANCH ... --name-only --diff-filter=d) for file in ${CHANGED_FILES}; do