summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAudun Sutterud <[email protected]>2025-06-02 10:22:37 +0200
committerAudun Sutterud <[email protected]>2025-06-12 06:48:32 +0000
commitf359832cea11a7ebcc1ebf1cfee123da22304278 (patch)
treec22c6397c6c7bed1e9de05222c343fd6ac1ce979 /tests
parent58acc0dc1ecb6c9a42c1860857a57ae323f07037 (diff)
Fix handling of repository namesHEADdev
The runner does not take into account that names start with "qt/". Change-Id: I741903a038b098a220f891d93900070ecfb99706 Reviewed-by: Daniel Smith <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_runner.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_runner.py b/tests/test_runner.py
index d4de019..b1c0e70 100644
--- a/tests/test_runner.py
+++ b/tests/test_runner.py
@@ -9,6 +9,20 @@ import common
import runner
+class Test(unittest.TestCase):
+ def test_get_submodule(self) -> None:
+ """
+ We can locate submodules.
+ """
+ submodule = runner.get_submodule("qt/qtbase")
+ self.assertIsInstance(submodule, str)
+ submodule = cast(str, submodule)
+ self.assertEqual(submodule, "qtbase")
+
+ self.assertIsInstance(runner.get_submodule("qtbase"), common.Error)
+ self.assertIsInstance(runner.get_submodule("qt/qt/qtbase"), common.Error)
+
+
class TestArguments(unittest.TestCase):
def test_parse(self) -> None:
"""