From 3db88657cc480e658c58f72a06583919da587b5b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 28 Jul 2018 09:10:30 +0200 Subject: Use build.version.stage value to pick repository for bdep-publish tests --- tests/publish.test | 13 +++++++++---- 1 file 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 -- cgit v1.1