ci: Fix clang-tidy-diff iregex
This commit is contained in:
@@ -77,9 +77,10 @@ clang-tidy-diff:
|
||||
script:
|
||||
- git remote add upstream https://gitlab.com/nsnam/ns-3-dev.git
|
||||
- git fetch upstream master
|
||||
# File paths generated by git diff are relative to the working tree. Therefore, iregex should only contain paths relative to the working tree.
|
||||
- git diff -U0 upstream/master |
|
||||
clang-tidy-diff-14.py -path cmake-cache/ -p1 -quiet -use-color
|
||||
-iregex ".*(ns|NS).*\/(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
|
||||
-iregex "(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
|
||||
1> $CLANG_TIDY_OUTPUT
|
||||
2> /dev/null
|
||||
- if egrep -A 3 "file not found \[clang-diagnostic-error\]" $CLANG_TIDY_OUTPUT ; then
|
||||
|
||||
Reference in New Issue
Block a user