summaryrefslogtreecommitdiffstats
path: root/hwdb.d/parse_hwdb.py
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2021-05-05 16:10:29 +0200
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2021-05-05 16:10:29 +0200
commit5d66d89c42743ff7cb9650b5c40ce394a7c2e4dd (patch)
tree59f5591ee6706cd03f6cb8a73cc2121ec07d463e /hwdb.d/parse_hwdb.py
parentMerge pull request #19454 from keszybz/assorted-cleanups (diff)
downloadsystemd-5d66d89c42743ff7cb9650b5c40ce394a7c2e4dd.tar.xz
systemd-5d66d89c42743ff7cb9650b5c40ce394a7c2e4dd.zip
hwdb: fix parser to execute test for ieee1394-unit-function with no argument
When given no arguments, hwdb parser script seeks test target files by glob pattern. Although I added a new file for IEEE 1394 unit functions, the file is excluded as test target due to the pattern. This commit fixes it. Fixes: 7713f3fc6a2 ("hwdb: add parser grammar for IEEE 1394 unit function list") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'hwdb.d/parse_hwdb.py')
-rwxr-xr-xhwdb.d/parse_hwdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
index 2cd4b1c370..6d88766f0b 100755
--- a/hwdb.d/parse_hwdb.py
+++ b/hwdb.d/parse_hwdb.py
@@ -301,7 +301,7 @@ def print_summary(fname, groups):
error('{}: no matches or props'.format(fname))
if __name__ == '__main__':
- args = sys.argv[1:] or sorted(glob.glob(os.path.dirname(sys.argv[0]) + '/[67][0-9]-*.hwdb'))
+ args = sys.argv[1:] or sorted(glob.glob(os.path.dirname(sys.argv[0]) + '/[678][0-9]-*.hwdb'))
for fname in args:
groups = parse(fname)