From 9f511be811821d7b6f823300db0c8f238012f1d1 Mon Sep 17 00:00:00 2001 From: Denis Averin Date: Tue, 11 Nov 2025 19:05:20 +0700 Subject: [PATCH] Fix test command in Makefile --- Makefile | 4 ++-- scripts/run_snippet.sh | 7 +++---- scripts/run_snippets.sh | 0 3 files changed, 5 insertions(+), 6 deletions(-) mode change 100644 => 100755 scripts/run_snippet.sh mode change 100644 => 100755 scripts/run_snippets.sh diff --git a/Makefile b/Makefile index e952296..a63ada9 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,9 @@ format-doc: find . -iname "*.md" -exec sed -i -e 's_[[:space:]]*$$__' {} \; .PHONY: test -test: +test: nuget dotnet test -v normal --framework=net$(LATEST_SDK_VERSION) - ./scripts/run_snippests.sh + ./scripts/run_snippets.sh .PHONY: build build: diff --git a/scripts/run_snippet.sh b/scripts/run_snippet.sh old mode 100644 new mode 100755 index bcba53c..357cc43 --- a/scripts/run_snippet.sh +++ b/scripts/run_snippet.sh @@ -7,11 +7,10 @@ RUN_DIR=$2 SCRIPT_DIR=$3 CONFIG_FILE_PATH=$4 -rm $RUN_DIR/*.cs || true +rm "$RUN_DIR"/*.cs || true echo "Run snippet file: $FILE_PATH" -python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR - -dotnet run --project ./$RUN_DIR/Snippets.csproj || exit 1 +python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR" +dotnet run --project "./$RUN_DIR/Snippets.csproj" || exit 1 diff --git a/scripts/run_snippets.sh b/scripts/run_snippets.sh old mode 100644 new mode 100755