Normalize null-separated dtc multi-string output in DTB checks
This commit is contained in:
1 parent
f6b42ff604
commit
edc8c5a6fc
4 files changed
+9
-4
No files matched your search
@@ -93,7 +93,11 @@ class TestSparklerPort(unittest.TestCase):
|
||||
# 1094400000 Hz in big-endian u32 is 0x413b3800 ("A;8\0" in ASCII)
|
||||
self.assertGreaterEqual(raw_dtb.count(b"\x41\x3b\x38\x00"), 4, dtb_rel)
|
||||
dec = subprocess.check_output([dtc, "-q", "-I", "dtb", "-O", "dts", dtb_path], text=True)
|
||||
dec = dec.replace(r"\0", '", "')
|
||||
self._assert_dts_invariants(dec)
|
||||
null_joined = dec.replace('"nokia,sparkler", "qcom,msm8909"', r'"nokia,sparkler\0qcom,msm8909"')
|
||||
self.assertIn(r'compatible = "nokia,sparkler\0qcom,msm8909";', null_joined)
|
||||
self._assert_dts_invariants(null_joined.replace(r"\0", '", "'))
|
||||
|
||||
def test_smp_cpufreq_haptic_audio_and_camera_fixes(self):
|
||||
patch_0013 = read_text("patches/kernel/0013-msm8909-early-scm-smp-cpufreq.patch")
|
||||
|
||||
Reference in new issue
Block a user