test: Remove defs from refs results

Signed-off-by: Maxime Chretien (MixLeNain) <mchretien@linuxmail.org>
This commit is contained in:
Maxime Chretien (MixLeNain) 2020-12-07 12:20:59 +01:00
parent c7f427b672
commit 10f08e33ea
2 changed files with 2 additions and 3 deletions

View file

@ -88,7 +88,7 @@ run_produces_ok('ident query (existent)',
[$query_py, qw(v5.4 ident i2c_acpi_notify C)],
[qr{^Symbol Definitions:}, qr{^Symbol References:},
{ def => qr{drivers/i2c/i2c-core-acpi\.c.+\b402\b.+\bfunction\b} },
{ ref => qr{drivers/i2c/i2c-core-acpi\.c.+\b402,439} },
{ ref => qr{drivers/i2c/i2c-core-acpi\.c.+\b439} },
],
MUST_SUCCEED);

View file

@ -63,8 +63,7 @@ class APITest(testing.TestCase):
],
'references':
[
{'path': 'drivers/i2c/i2c-core-of.c', 'line': '22,62,73', 'type': None},
{'path': 'include/linux/i2c.h', 'line': '941,968', 'type': None}
{'path': 'drivers/i2c/i2c-core-of.c', 'line': '62,73', 'type': None}
],
'documentations': []
}