Skip to content

Commit a2b664c

Browse files
committed
update testing run.sh
1 parent 7368f3b commit a2b664c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

testing/run.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
#!/bin/bash
2-
# 2 Failed cases are expected
32
echo "==========================="
43
echo "Test pre-commit-config.yaml"
54
echo "==========================="
65
pre-commit clean
76
pre-commit run -c testing/pre-commit-config.yaml --files testing/main.c | tee -a result.txt || true
87
git restore testing/main.c
98

10-
# 10 Failed cases are expected
119
echo "===================================="
1210
echo "Test pre-commit-config-version.yaml"
1311
echo "===================================="
1412
pre-commit clean
1513
pre-commit run -c testing/pre-commit-config-version.yaml --files testing/main.c | tee -a result.txt || true
1614
git restore testing/main.c
1715

18-
# 2 Failed cases are expected
1916
echo "===================================="
2017
echo "Test pre-commit-config-verbose.yaml"
2118
echo "===================================="
2219
pre-commit clean
2320
pre-commit run -c testing/pre-commit-config-verbose.yaml --files testing/main.c | tee -a result.txt || true
2421
git restore testing/main.c
2522

26-
echo "===================================="
23+
echo "=================================================================================="
2724
echo "print result.txt"
2825
cat result.txt
29-
echo "===================================="
26+
echo "=================================================================================="
3027

3128
failed_cases=`grep -c "Failed" result.txt`
3229

0 commit comments

Comments
 (0)