From: Alexis Lothoré <alexis.loth...@bootlin.com>

Signed-off-by: Alexis Lothoré <alexis.loth...@bootlin.com>
---
 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://g...@push.yoctoproject.org/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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59496): https://lists.yoctoproject.org/g/yocto/message/59496
Mute This Topic: https://lists.yoctoproject.org/mt/97797234/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to