]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: Add a stdout check in test_normalized_name()
authorSimon Glass <sjg@chromium.org>
Sun, 4 Jul 2021 18:19:47 +0000 (12:19 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
This test captures output but does not always check it. Add the missing
code and drop the old comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/test_src_scan.py

index d6da03849f9a079de2177783e141ad8467fa314f..4e38b25a2f8c7ce9f39f33be5cfa58cdc7c8032d 100644 (file)
@@ -171,8 +171,7 @@ class TestSrcScan(unittest.TestCase):
         self.assertEqual([], aliases)
         self.assertEqual(1, len(scan._missing_drivers))
         self.assertEqual({'rockchip_rk3288_grf'}, scan._missing_drivers)
-            #'WARNING: the driver rockchip_rk3288_grf was not found in the driver list',
-            #stdout.getvalue().strip())
+        self.assertEqual('', stdout.getvalue().strip())
 
         i2c = 'I2C_UCLASS'
         compat = {'rockchip,rk3288-grf': 'ROCKCHIP_SYSCON_GRF',