You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2026/10/18 13:35:01 UTC
(mynewt-newt) 03/08: newt: Use dummy repos in allowed/ignored upgrade test
This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit 131044df9b9bf3354dffb2b18e5e8ece7e2231fe
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Thu Oct 15 17:57:26 2026 +0200
newt: Use dummy repos in allowed/ignored upgrade test
The allowed-ignored test project installed apache-mynewt-core and its
dependencies from GitHub, so it needed network access and its result
depended on the current mynewt-core master. Use dummy repos instead,
covering the same cases: exact, regex and wildcard patterns, ignored
repos overriding allowed ones, and repos from project.yml installed even
if they are not allowed.
Assisted-by: Claude:claude-opus-5-5
---
newt/testdata/upgrade/allowed-ignored/expected.txt | 10 ++----
newt/testdata/upgrade/allowed-ignored/project.yml | 36 ++++++++++++----------
2 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/newt/testdata/upgrade/allowed-ignored/expected.txt b/newt/testdata/upgrade/allowed-ignored/expected.txt
index 2951299b..04a48a8e 100644
--- a/newt/testdata/upgrade/allowed-ignored/expected.txt
+++ b/newt/testdata/upgrade/allowed-ignored/expected.txt
@@ -1,7 +1,3 @@
-apache-mynewt-core
-apache-mynewt-nimble
-arm-CMSIS_5
-mcuboot
-nordic-nrfx
-stm-stm32g4xx_hal_driver
-tinyusb
+mynewt-dummy-repo-01
+mynewt-dummy-repo-03
+mynewt-dummy-repo-04
diff --git a/newt/testdata/upgrade/allowed-ignored/project.yml b/newt/testdata/upgrade/allowed-ignored/project.yml
index 2a9a9ed6..6063ce52 100644
--- a/newt/testdata/upgrade/allowed-ignored/project.yml
+++ b/newt/testdata/upgrade/allowed-ignored/project.yml
@@ -17,25 +17,29 @@
# under the License.
#
-repository.apache-mynewt-core:
- type: github
- vers: 0-dev
- user: apache
- repo: mynewt-core
-repository.tinyusb:
- type: github
+# mynewt-dummy-repo-01 depends on mynewt-dummy-repo-02 and
+# mynewt-dummy-repo-03. Repos specified in project.yml are installed even
+# if not allowed, unless ignored.
+repository.mynewt-dummy-repo-01:
+ type: git
vers: 0.0.0
- user: hathach
- repo: tinyusb
+ url: 'https://dummy.invalid/mynewt-dummy-repo-01.git'
+
+repository.mynewt-dummy-repo-04:
+ type: git
+ vers: 0.0.0
+ url: 'https://dummy.invalid/mynewt-dummy-repo-04.git'
+
+repository.mynewt-dummy-repo-05:
+ type: git
+ vers: 0.0.0
+ url: 'https://dummy.invalid/mynewt-dummy-repo-05.git'
project.repositories.allowed:
- - apache-*
- - ~stm-.*g4
- - mcuboot
- - arm-CMSIS_5
- - nordic-nrfx
+ - mynewt-dummy-repo-01
+ - ~mynewt-dummy-repo-0[23]
project.repositories.ignored:
- - apache-mynewt-mcumgr
- - stm-cmsis_device_g4
+ - mynewt-dummy-repo-02
+ - mynewt-dummy-repo-05*