Skip to content

Commit 8415460

Browse files
committed
chore(hooks): add --simple flag to pre-commit test run
1 parent 22d747f commit 8415460

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ pre_commit/install:
7979
@echo "Installing pre-commit hook"
8080
cp $(PRE_COMMIT_SCRIPTS_FILE) $(GIT_DIR)/hooks/
8181

82-
pre_commit/run: test sa lint
82+
pre_commit/run:
83+
@$(MAKE) -j3 test/parallel sa lint
84+
85+
test/parallel: $(TEST_SCRIPTS)
86+
@bash ./bashunit --parallel --simple $(TEST_SCRIPTS)
8387

8488
sa:
8589
ifndef STATIC_ANALYSIS_CHECKER

bin/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "Running pre-commit checks"
44
make pre_commit/run
55
EXIT_CODE=$?
66

7-
if [[ ${EXIT_CODE} -ne 0 ]]; then
7+
if [ "${EXIT_CODE}" -ne 0 ]; then
88
echo "Pre Commit checks failed. Please fix the above issues before committing"
99
exit ${EXIT_CODE}
1010
else

0 commit comments

Comments
 (0)