]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - tools/buildman/func_test.py
tools: Update python "help" tests to cope with "more" oddities
[people/ms/u-boot.git] / tools / buildman / func_test.py
index bc32f61733a844fca1728d6d94244ba0ee3ee84f..eec0f9bd373014355c6b849d3b70ace767b17af5 100644 (file)
@@ -231,7 +231,10 @@ class TestFunctional(unittest.TestCase):
         command.test_result = None
         result = self._RunBuildman('-H')
         help_file = os.path.join(self._buildman_dir, 'README')
-        self.assertEqual(len(result.stdout), os.path.getsize(help_file))
+        # Remove possible extraneous strings
+        extra = '::::::::::::::\n' + help_file + '\n::::::::::::::\n'
+        gothelp = result.stdout.replace(extra, '')
+        self.assertEqual(len(gothelp), os.path.getsize(help_file))
         self.assertEqual(0, len(result.stderr))
         self.assertEqual(0, result.return_code)