浏览代码

support/testing: check ubi image before booting

Do the same as other fs tests and minimally check the ubi image before
booting.
The call to 'file' was already there, but the output wasn't tested for
some unknown reason. Add the assert for the output of the command.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Ricardo Martincoski 6 年之前
父节点
当前提交
8de4291bd2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      support/testing/tests/fs/test_ubi.py

+ 1 - 0
support/testing/tests/fs/test_ubi.py

@@ -25,6 +25,7 @@ class TestUbi(infra.basetest.BRTest):
                                       cwd=self.builddir,
                                       cwd=self.builddir,
                                       env={"LANG": "C"})
                                       env={"LANG": "C"})
         out = out.splitlines()
         out = out.splitlines()
+        self.assertIn("UBI image, version 1", out[0])
 
 
         subprocess.call(["truncate", "-s 128M", img])
         subprocess.call(["truncate", "-s 128M", img])