From 68680d7ed2de07d1b67dd6d3c943a7c7736dbd45 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 7 Jul 2022 20:50:25 +0300 Subject: Use [cmdline] type for canned commands in testscripts --- tests/submit/submit-git.testscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/submit/submit-git.testscript') diff --git a/tests/submit/submit-git.testscript b/tests/submit/submit-git.testscript index 19650c5..ec87637 100644 --- a/tests/submit/submit-git.testscript +++ b/tests/submit/submit-git.testscript @@ -9,14 +9,14 @@ # # test.redirects += 2>! -g = git 2>! >&2 +g = [cmdline] git 2>! >&2 # Create and clone the reference repository. # root_ref = $~/ref.git root_ref_dir = $~/ref -clone_root_ref = cp --no-cleanup -r $root_ref ./ &ref.git/*** +clone_root_ref = [cmdline] cp --no-cleanup -r $root_ref ./ &ref.git/*** +mkdir --no-cleanup $root_ref +$g -C $root_ref init --bare &ref.git/*** @@ -44,7 +44,7 @@ root_tgt_url = "file:///$~/tgt.git" +cp -r $root_ref $root_tgt -clone_root_tgt = cp --no-cleanup -r $root_tgt ./ &tgt.git/*** +clone_root_tgt = [cmdline] cp --no-cleanup -r $root_tgt ./ &tgt.git/*** # Extract the package repository. # -- cgit v1.1