From e5ecde0d92545aafb488e67494ebf7ecc979b569 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 23 Nov 2021 16:25:17 +0300 Subject: Fix git-pre-commit-copyright-check tests --- tests/git-pre-commit-copyright-check.testscript | 6 ++++-- tests/git-pre-commit.testscript | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/git-pre-commit-copyright-check.testscript b/tests/git-pre-commit-copyright-check.testscript index f8e51f5..f6c2b45 100644 --- a/tests/git-pre-commit-copyright-check.testscript +++ b/tests/git-pre-commit-copyright-check.testscript @@ -13,8 +13,10 @@ EOI $ga .; - $gc 2>>EOE; - WARNING: last copyright year in 'LICENSE' is 2019 + # Note that the 'WARNING:' prefix is printed in bold red. + # + $gc 2>>~%EOE%; + %.+WARNING:.+ last copyright year in 'LICENSE' is 2019% EOE date +"%Y" | set year; diff --git a/tests/git-pre-commit.testscript b/tests/git-pre-commit.testscript index 8b8f140..c50a9dc 100644 --- a/tests/git-pre-commit.testscript +++ b/tests/git-pre-commit.testscript @@ -36,7 +36,9 @@ EOI $ga .; - $gc 2>>EOE - WARNING: last copyright year in 'LICENSE' is 2019 + # Note that the 'WARNING:' prefix is printed in bold red. + # + $gc 2>>~%EOE% + %.+WARNING:.+ last copyright year in 'LICENSE' is 2019% EOE } -- cgit v1.1