From 0fb8758d42047c9de9fef2bd34852e80d3ac9a99 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 4 Apr 2020 15:55:59 +0300 Subject: Make use of project configuration variables for tests --- tests/remote.testscript | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tests/remote.testscript') diff --git a/tests/remote.testscript b/tests/remote.testscript index 1bf229d..f774a41 100644 --- a/tests/remote.testscript +++ b/tests/remote.testscript @@ -19,18 +19,16 @@ # out = $canonicalize([dir_path] $~/pkg/1/build2.org/) -# If $remote is true then remote repositories locations must be used for -# tests. Variables rep_root and rep refer to the root and the command- -# specific repositories respectively. Note that the variables type is dir_path -# for local repositories (rather than string for the remote ones), that allows -# to portably obtain sub-repositories locations representations. +# Variables rep_root and rep refer to the root and the command-specific +# repositories respectively. Note that the variables type is dir_path for +# local repositories (rather than string for the remote ones), that allows to +# portably obtain sub-repositories locations representations. # -remote = $config.bpkg.test.remote -rep_root = ($remote == true ? [string] "https://build2.org/bpkg/1" : $out) +rep_root = ($remote ? [string] "https://build2.org/bpkg/1" : $out) out += [dir_path] $cmd -rep = ($remote == true ? [string] "$rep_root/$cmd" : $out) +rep = ($remote ? [string] "$rep_root/$cmd" : $out) -+if ($remote != true) ++if! $remote mkdir -p $out end -- cgit v1.1