aboutsummaryrefslogtreecommitdiff
path: root/tests/git-pre-commit.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-11-23 16:25:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-11-23 16:31:01 +0300
commite5ecde0d92545aafb488e67494ebf7ecc979b569 (patch)
tree442c325891c8c995a2a22e240cd78bdcd5364cfb /tests/git-pre-commit.testscript
parent33043409defed34da43630a0b8900c05189673ac (diff)
Fix git-pre-commit-copyright-check tests
Diffstat (limited to 'tests/git-pre-commit.testscript')
-rw-r--r--tests/git-pre-commit.testscript6
1 files changed, 4 insertions, 2 deletions
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
}