From 8de4291bd2097d8142cd9d77a2b3315d3693443b Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Thu, 8 Aug 2019 20:10:11 -0300 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- support/testing/tests/fs/test_ubi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/support/testing/tests/fs/test_ubi.py b/support/testing/tests/fs/test_ubi.py index 015d82f769..e024d417df 100644 --- a/support/testing/tests/fs/test_ubi.py +++ b/support/testing/tests/fs/test_ubi.py @@ -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]) -- 2.30.2