Skip to content

Commit 9f511be

Browse files
committed
Fix test command in Makefile
1 parent dc123db commit 9f511be

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ format-doc:
2222
find . -iname "*.md" -exec sed -i -e 's_[[:space:]]*$$__' {} \;
2323

2424
.PHONY: test
25-
test:
25+
test: nuget
2626
dotnet test -v normal --framework=net$(LATEST_SDK_VERSION)
27-
./scripts/run_snippests.sh
27+
./scripts/run_snippets.sh
2828

2929
.PHONY: build
3030
build:

scripts/run_snippet.sh

100644100755
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ RUN_DIR=$2
77
SCRIPT_DIR=$3
88
CONFIG_FILE_PATH=$4
99

10-
rm $RUN_DIR/*.cs || true
10+
rm "$RUN_DIR"/*.cs || true
1111

1212
echo "Run snippet file: $FILE_PATH"
1313

14-
python ${SCRIPT_DIR}/insert-credentials.py $FILE_PATH $CONFIG_FILE_PATH $RUN_DIR
15-
16-
dotnet run --project ./$RUN_DIR/Snippets.csproj || exit 1
14+
python "${SCRIPT_DIR}/insert-credentials.py" "$FILE_PATH" "$CONFIG_FILE_PATH" "$RUN_DIR"
1715

16+
dotnet run --project "./$RUN_DIR/Snippets.csproj" || exit 1

scripts/run_snippets.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)