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>
This commit is contained in:
Ricardo Martincoski 2019-08-08 20:10:11 -03:00 committed by Thomas Petazzoni
parent 3c933748a4
commit 8de4291bd2

View File

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