[dpdk-ci] [PATCH] tests: run checkpatches.sh from the DPDK directory
Ali Alnubani
alialnu at oss.nvidia.com
Wed Sep 8 17:19:36 CEST 2021
The unit test check_release_notes was failing because it didn't
find some of the DPDK sources, which has been causing the CI
script checkpatch.sh to sometimes report false positives.
Signed-off-by: Ali Alnubani <alialnu at nvidia.com>
---
tests/checkpatch.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/checkpatch.sh b/tests/checkpatch.sh
index 0ce5414..2034e32 100755
--- a/tests/checkpatch.sh
+++ b/tests/checkpatch.sh
@@ -43,7 +43,7 @@ if echo $subject | grep -qi 'v[2-9].*\]' && [ -z "$reply" ] ; then
replyto_msg='Must be a reply to the first patch (--in-reply-to).\n\n'
fi
-report=$($dpdkdir/devtools/checkpatches.sh -q $email) || failed=true
+report=$(cd $dpdkdir && devtools/checkpatches.sh -q $email) || failed=true
report=$(echo "$report" | sed '1,/^###/d')
label='checkpatch'
--
2.25.1
More information about the ci
mailing list