From 9403537150bd2d4e7befb1b40fb61ea8db0ed751 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 7 Jul 2022 20:34:49 +0300 Subject: Use [cmdline] type for canned commands in testscripts --- tests/publish.testscript | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/publish.testscript') diff --git a/tests/publish.testscript b/tests/publish.testscript index add8418..08e00fe 100644 --- a/tests/publish.testscript +++ b/tests/publish.testscript @@ -27,7 +27,7 @@ init += $config_cxx -d prj 2>! &prj/**/bootstrap/*** windows = ($cxx.target.class == 'windows') -g = git -C prj >! 2>! +g = [cmdline] git -C prj >! 2>! # Note that using the same package name and version for tests may result in # duplicate submissions. We will use unique version for each test, @@ -272,7 +272,7 @@ g = git -C prj >! 2>! test.options += --no-progress test.arguments += --simulate 'success' - clone_prj = cp --no-cleanup -pr ../prj ./ &prj/*** + clone_prj = [cmdline] cp --no-cleanup -pr ../prj ./ &prj/*** +$clone_prj @@ -350,7 +350,7 @@ g = git -C prj >! 2>! test.options += --no-progress test.arguments += --simulate 'success' - clone_prj = cp --no-cleanup -pr ../prj ./ &prj/***; + clone_prj = [cmdline] cp --no-cleanup -pr ../prj ./ &prj/***; $clone_prj; rm -rf prj/.git; @@ -445,8 +445,8 @@ g = git -C prj >! 2>! +$g config user.name 'Test Script' +$g config user.email 'testscript@example.com' - clone_rep = cp --no-cleanup -r ../prj.git ./ &prj.git/*** - clone_prj = cp --no-cleanup -r ../prj ./ &prj/*** + clone_rep = [cmdline] cp --no-cleanup -r ../prj.git ./ &prj.git/*** + clone_prj = [cmdline] cp --no-cleanup -r ../prj ./ &prj/*** : success : @@ -526,7 +526,7 @@ g = git -C prj >! 2>! : failure : { - g2 = git -C prj2 >! 2>! + g2 = [cmdline] git -C prj2 >! 2>! # Setup the remote repository. # -- cgit v1.1