binman: Add a main program to the tests

Add a main program so that the tests can be executed directly, without
going through the main binman program.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2017-11-12 21:52:22 -07:00
parent 934cdcfb1b
commit 9fc60b4975
2 changed files with 8 additions and 0 deletions

View File

@@ -55,3 +55,7 @@ class TestEntry(unittest.TestCase):
entry.Entry.Create(None, node, node.name)
self.assertIn("Unknown entry type 'invalid-name' in node "
"'invalid-path'", str(e.exception))
if __name__ == "__main__":
unittest.main()