1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/py3-dt-schema/drop-yaml-output-fmt-test.patch
Iskren Chernev 0a3c7b75e7 testing/py3-dt-schema: upgrade to 2022.08.3
The full test suite requires dtc compiled with yaml support. To avoid
creating a dtc-yaml package just so that all tests can run, drop the
offending test in a patch, so the other tests can still run.
2022-08-29 14:05:14 +00:00

24 lines
1.2 KiB
Diff

--- a/test/test-dt-validate.py
+++ b/test/test-dt-validate.py
@@ -136,21 +136,6 @@
if isinstance(value, dict):
self.check_subtree(name, value, fail)
- def test_dt_yaml_validation(self):
- '''Test that all DT files under ./test/ validate against the DT schema (YAML)'''
- for filename in glob.iglob('test/*.dts'):
- with self.subTest(schema=filename):
- expect_fail = "-fail" in filename
- tmpfile = tempfile.NamedTemporaryFile()
- # The test files have lots of expected warnings, so send stderr to /dev/null
- res = subprocess.run(['dtc', '-Oyaml', filename], stdout=tmpfile, stderr=subprocess.PIPE)
- self.assertEqual(res.returncode, 0, msg='dtc failed:\n' + res.stderr.decode())
-
- testtree = dtschema.load(tmpfile.name)[0]
- for name,value in testtree.items():
- if isinstance(value, dict):
- self.check_node(name, value, expect_fail)
-
def test_dtb_validation(self):
'''Test that all DT files under ./test/ validate against the DT schema (DTB)'''
for filename in glob.iglob('test/*.dts'):