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/pkg-build.testscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/pkg-build.testscript') diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index c0bac41..d1cfb91 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -120,7 +120,7 @@ # Prepare repositories used by tests if running in the local mode. # -+if ($remote != true) ++if! $remote rep_create += 2>! cp -r $src/t0a $out/t0a && $rep_create $out/t0a &$out/t0a/packages.manifest @@ -3320,7 +3320,7 @@ test.options += --no-progress { $clone_root_cfg; - if ($remote != true) + if! $remote rep = ($cxx.target.class != 'windows' \ ? "file:$rep" \ : "file:/$regex.replace($rep, '\\', '/')") @@ -3782,7 +3782,7 @@ test.options += --no-progress : git-rep : -if ($git_supported != true) +if! $git_supported { # Skip git repository tests. # @@ -3857,7 +3857,7 @@ else : Test that the unpacked external package is properly built for the first : time and is not rebuilt afterwards via the directory argument. : - if ($remote != true) + if! $remote { $clone_root_cfg; -- cgit v1.1