Skip to content

Commit

Permalink
add test for skipping a linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jul 4, 2024
1 parent 685abc8 commit a90535f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ jobs:
continue-on-error: true
- name: check if all test tools were linted
run: |
set -x
# check if the ToolIDValid linter is called (no of tools - 1 ) times, i.e. is skipped once
if [ "$(grep -c ToolIDValid ToolIDValid) != "2" ]; then
echo "expecting exactly 2 tests for ToolIDValid"; exit 1;
fi
grep tool1 lint_report.txt
grep tool2 lint_report.txt
grep "ERROR: Error 'HTTPConnectionPool" lint_report.txt
Expand Down
1 change: 1 addition & 0 deletions test/tools/tool1/.lint_skip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ToolIDValid

0 comments on commit a90535f

Please sign in to comment.