aboutsummaryrefslogtreecommitdiff
path: root/tests/remote-git.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-04 15:55:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-06 18:51:49 +0300
commit0fb8758d42047c9de9fef2bd34852e80d3ac9a99 (patch)
tree005262473fb522f96da96f1716fd8d7c44a2d501 /tests/remote-git.testscript
parent5631205edf682629d1d34634025bdfa2191e6a4f (diff)
Make use of project configuration variables for tests
Diffstat (limited to 'tests/remote-git.testscript')
-rw-r--r--tests/remote-git.testscript12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/remote-git.testscript b/tests/remote-git.testscript
index 34c0643..308c067 100644
--- a/tests/remote-git.testscript
+++ b/tests/remote-git.testscript
@@ -36,11 +36,7 @@ git_supported = ($git_version_major > 2 || \
#
out_git = $canonicalize([dir_path] $~/git/$cmd)
-# If $remote is true then remote repository locations must be used for tests.
-#
-remote = $config.bpkg.test.remote
-
-+if ($remote != true)
++if! $remote
rep_git_local = ($cxx.target.class != 'windows' \
? "file://$out_git" \
: "file:/$regex.replace($out_git, '\\', '/')")
@@ -51,12 +47,6 @@ remote = $config.bpkg.test.remote
mkdir -p $out_git
else
- # If $git_ssh is not true then testscripts must skip tests that use the ssh
- # protocol. Otherwise, it is assumed that the password-less ssh
- # authentication is arranged for git.build2.org.
- #
- git_ssh = $config.bpkg.test.git.ssh
-
rep_git_https_dumb = "https://build2.org/bpkg/git/$cmd"
rep_git_https_smart = "https://git.build2.org/testing/bpkg/advonly/$cmd"
rep_git_https_smart_unadv = "https://git.build2.org/testing/bpkg/unadv/$cmd"