From: Takashi Sakamoto Date: Wed, 5 May 2021 14:10:29 +0000 (+0900) Subject: hwdb: fix parser to execute test for ieee1394-unit-function with no argument X-Git-Tag: v249-rc1~295^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d66d89c42743ff7cb9650b5c40ce394a7c2e4dd;p=thirdparty%2Fsystemd.git 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 --- diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py index 2cd4b1c3706..6d88766f0b2 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)