diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-04 15:55:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-06 18:51:49 +0300 |
commit | 0fb8758d42047c9de9fef2bd34852e80d3ac9a99 (patch) | |
tree | 005262473fb522f96da96f1716fd8d7c44a2d501 /tests/remote.testscript | |
parent | 5631205edf682629d1d34634025bdfa2191e6a4f (diff) |
Make use of project configuration variables for tests
Diffstat (limited to 'tests/remote.testscript')
-rw-r--r-- | tests/remote.testscript | 16 |
1 files changed, 7 insertions, 9 deletions
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 |