summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2024-03-14 09:02:30 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2024-03-15 10:18:03 +0100
commita2d46e2bbb9f5625d8a3ff1a729ee71cd309c784 (patch)
treeff63b39f1188ba0cab539c09bc57a1fc78f75cb2 /scripts
parente0cbbdbcfbf4e7e6f5a6fd528158cfb12351dd41 (diff)
scripts/xls_to_doc.py: don't duplicate a common field
If the TEST field has the same value of the subtest one, ignore it when updating it, as the subtest on is inherited. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/xls_to_doc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/xls_to_doc.py b/scripts/xls_to_doc.py
index 749666faf..0d6ad0e0b 100755
--- a/scripts/xls_to_doc.py
+++ b/scripts/xls_to_doc.py
@@ -317,6 +317,11 @@ class FillTests(TestList):
print(f"{testname}@{subtest} field {field}: Value unchanged: {value}. Ignoring it")
continue
+ if value == self.doc[test_nr].get(field, ""):
+ if self.verbose:
+ print(f"{testname}@{subtest} field {field}: Value matches common field. Ignoring it")
+ continue
+
if self.verbose > 0:
print(f"Update {testname}@{subtest} field {field} on line {line}:")
print(f" Change from {doc_value} to {value}")