From 5d66d89c42743ff7cb9650b5c40ce394a7c2e4dd Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 5 May 2021 23:10:29 +0900 Subject: [PATCH] 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 --- hwdb.d/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)