From: Alexis Lothoré <alexis.lothore@...>
Signed-off-by: Alexis Lothoré <alexis.lothore@...>
---
scripts/test_utils.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scripts/test_utils.py b/scripts/test_utils.py
index ab91e3b..d02e9b2 100755
--- a/scripts/test_utils.py
+++ b/scripts/test_utils.py
@@ -99,6 +99,16 @@ class TestGetComparisonBranch(unittest.TestCase):
self.assertEqual(
comparebranch, None, msg="Arbitrary repo/branch should not return any specific comparebranch")
+ def test_master_nightly(self):
+ repo = "ssh://git@.../poky"
+ branch = "master"
+ basebranch, comparebranch = utils.getcomparisonbranch(
+ self.TEST_CONFIG, repo, branch)
+ self.assertEqual(
+ basebranch, "master", msg="Master branch should be returned")
+ self.assertEqual(
+ comparebranch, None, msg="No specific comparebranch should be returned")
+
if __name__ == '__main__':
unittest.main()
--
2.40.0