From b17ca80d27ab86d2d0a6c0e6a35a17a0fabe4d72 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 4 Aug 2023 01:18:21 -0400 Subject: [PATCH] Also parse .proto files in plugin subdirectories Followup fix for #3184 --- ci/check-rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/check-rpc.py b/ci/check-rpc.py index 03bccb552..be7d07986 100755 --- a/ci/check-rpc.py +++ b/ci/check-rpc.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 import glob +import itertools import sys actual = {'': {}} @@ -27,7 +28,7 @@ for p in glob.iglob('library/proto/*.proto'): parts = line.split(' ') expected[''][parts[2]] = (parts[4], parts[6]) -for p in glob.iglob('plugins/proto/*.proto'): +for p in itertools.chain(glob.iglob('plugins/proto/*.proto'), glob.iglob('plugins/*/proto/*.proto')): plugin_name = '' with open(p) as f: for line in f: