summaryrefslogtreecommitdiff
path: root/tools/binman
diff options
context:
space:
mode:
Diffstat (limited to 'tools/binman')
-rw-r--r--tools/binman/entry_test.py4
-rw-r--r--tools/binman/ftest.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/binman/entry_test.py b/tools/binman/entry_test.py
index 789b26fd9f..caa523ebf8 100644
--- a/tools/binman/entry_test.py
+++ b/tools/binman/entry_test.py
@@ -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()
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index eae1ab1c4b..539ebc57f5 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -813,3 +813,7 @@ class TestFunctional(unittest.TestCase):
"""Test that an image with a VBT binary can be created"""
data = self._DoReadFile('46_intel-vbt.dts')
self.assertEqual(VBT_DATA, data[:len(VBT_DATA)])
+
+
+if __name__ == "__main__":
+ unittest.main()