Skip to content

Commit 4a7709c

Browse files
committed
tests: lint: print versions
The linters might show different results depending on the version. Then, it looks interesting to print these versions to help people reproducing issues on their side. If there is an issue to print the version, exit with an error: this will also help to identify if the linter is missing or if there is something wrong with it. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent 39353c0 commit 4a7709c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tests/patch/pylint/pylint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ then
1515
exit 0
1616
fi
1717

18+
pylint --version || exit 1
19+
1820
tmpfile_o=$(mktemp)
1921
tmpfile_n=$(mktemp)
2022

tests/patch/shellcheck/shellcheck.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ then
1515
exit 0
1616
fi
1717

18+
shellcheck --version || exit 1
19+
1820
tmpfile_o=$(mktemp)
1921
tmpfile_n=$(mktemp)
2022

tests/patch/yamllint/yamllint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ then
1515
exit 0
1616
fi
1717

18+
yamllint --version || exit 1
19+
1820
tmpfile_o=$(mktemp)
1921
tmpfile_n=$(mktemp)
2022

0 commit comments

Comments
 (0)