From 1c6fc35c120ee79ecbd6f0b2a8e9598ec0c68128 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 7 Jul 2022 20:38:15 +0300 Subject: Use [cmdline] type for canned commands in testscripts --- tests/git-common.testscript | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/git-common.testscript') diff --git a/tests/git-common.testscript b/tests/git-common.testscript index aa90f3d..7f4f585 100644 --- a/tests/git-common.testscript +++ b/tests/git-common.testscript @@ -4,14 +4,14 @@ # Set commonly-used variables and create an empty git repository that will be # copied by subsequent tests and scope setup commands. # -g = git >! 2>&1 -gp = $g -C prj -ga = $gp add -gr = $gp rm +g = [cmdline] git >! 2>&1 +gp = [cmdline] $g -C prj +ga = [cmdline] $gp add +gr = [cmdline] $gp rm +$g init prj &prj/*** +$gp config user.name 'Test Script' +$gp config user.email 'testscript@example.com' -clone_prj = cp --no-cleanup -r ../prj ./ &prj/*** +clone_prj = [cmdline] cp --no-cleanup -r ../prj ./ &prj/*** -- cgit v1.1