From 25662fbfbc2a06524cf9000e66e6ea5eb2bc3a52 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 20 Oct 2020 18:00:23 +0200 Subject: [PATCH] test/buildroot: more lenient output test checking In `test_output`, require that the test string is found in the output, not equal to the output. Other warnings or log messages might be printed by the runner. --- test/mod/test_buildroot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mod/test_buildroot.py b/test/mod/test_buildroot.py index 70e17377..3495f68b 100644 --- a/test/mod/test_buildroot.py +++ b/test/mod/test_buildroot.py @@ -77,7 +77,7 @@ class TestBuildRoot(test.TestBase): r = root.run(["/usr/bin/echo", data], monitor) self.assertEqual(r.returncode, 0) - self.assertEqual(data, r.output.strip()) + self.assertIn(data, r.output.strip()) @unittest.skipUnless(test.TestBase.have_test_data(), "no test-data access") def test_bind_mounts(self):