From 9d1787820b9811d06f0aff9448f419c72f7aa39c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Aug 2021 11:20:15 +0200 Subject: Add --no-verify to git commit commands in tests --- tests/ci.testscript | 2 +- tests/publish.testscript | 4 ++-- tests/release.testscript | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ci.testscript b/tests/ci.testscript index bc3174f..2348cce 100644 --- a/tests/ci.testscript +++ b/tests/ci.testscript @@ -32,7 +32,7 @@ g = git -C prj 2>! >&2 +$g config user.email 'testscript@example.com' +$g remote add origin $~/prj.git +$g add '*' -+$g commit -m 'Create' ++$g commit -m 'Create' --no-verify +$g push --set-upstream origin master # Repository the CI-ed packages come from. diff --git a/tests/publish.testscript b/tests/publish.testscript index 07c3632..2e7e215 100644 --- a/tests/publish.testscript +++ b/tests/publish.testscript @@ -257,7 +257,7 @@ g = git -C prj >! 2>! +$g config user.name 'Test Script' +$g config user.email 'testscript@example.com' +$g add '*' - +$g commit -m 'Create' + +$g commit -m 'Create' --no-verify : final : @@ -595,7 +595,7 @@ g = git -C prj >! 2>! # the build2-control branch, so the subsequent publishing fails. # $g add '*'; - $g commit -m 'Create'; + $g commit -m 'Create' --no-verify; $g push --set-upstream origin master; $* 2>>~%EOE% != 0; diff --git a/tests/release.testscript b/tests/release.testscript index 6c89987..0b772c1 100644 --- a/tests/release.testscript +++ b/tests/release.testscript @@ -33,7 +33,7 @@ log = $gp log '--pretty=format:"%d %s"' +$gp config user.email 'testscript@example.com' +$gp remote add origin ../prj.git +$gp add '*' -+$gp commit -m 'Create' ++$gp commit -m 'Create' --no-verify +$gp push --set-upstream origin master clone_prj = cp --no-cleanup -pr ../prj ./ &prj/*** -- cgit v1.1