aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/publish.test13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/publish.test b/tests/publish.test
index 43edd42..0b50270 100644
--- a/tests/publish.test
+++ b/tests/publish.test
@@ -4,11 +4,16 @@
.include common.test project.test
-# By default simulate the package submissions to the stage repository.
+# Repository to use for the package submissions simulation.
#
-repository = ($config.bdep.test.repository != [null] \
- ? "$config.bdep.test.repository" \
- : 'https://stage.build2.org')
+# Note: could use empty config.bdep.test.repository value to suppress
+# these test (which require network access).
+#
+repository = ($config.bdep.test.repository == [null] \
+ ? ($build.version.stage \
+ ? 'https://stage.build2.org' \
+ : 'https://cppget.org') \
+ : "$config.bdep.test.repository")
test.arguments += --repository "$repository" --control 'none' --yes \
--email user@example.com