From 48bad754445b90e5cce7c19f40d93c9f0e2662df Mon Sep 17 00:00:00 2001 From: Affe Null Date: Fri, 18 Apr 2025 12:21:05 +0200 Subject: [PATCH] CI: deviceinfo: add manufacturer exception for Jolla Some phones sold under the Jolla brand are manufactured by a partner, e.g. the Jolla C2 is manufactured by Reeder. Although these phones usually have another name given to them by the manufacturer, the name used by Jolla is more recognizable. Allow specifying a name that starts with "Jolla" instead of the manufacturer name. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6426 --- .ci/testcases/test_deviceinfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/testcases/test_deviceinfo.py b/.ci/testcases/test_deviceinfo.py index d290b7e80..3e5266122 100644 --- a/.ci/testcases/test_deviceinfo.py +++ b/.ci/testcases/test_deviceinfo.py @@ -74,7 +74,8 @@ def test_deviceinfo(): name = info.name manufacturer = info.manufacturer if not name.startswith(manufacturer) and \ - not name.startswith("Google"): + not name.startswith("Google") and \ + not name.startswith("Jolla"): raise RuntimeError("Please add the manufacturer in front of" " the deviceinfo_name, e.g.: '" + manufacturer + " " + name + "'")