aboutsummaryrefslogtreecommitdiff
path: root/tests
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:25:17 +0300
commit99a62a9970f12a2af813aa7d265e525d40f680cf (patch)
treeea55cf44694e0ab3b4c8c49ac79ba2f8f02b5f30 /tests
parent33043409defed34da43630a0b8900c05189673ac (diff)
Fix git-pre-commit-copyright-check testsci
Diffstat (limited to 'tests')
-rw-r--r--tests/git-pre-commit-copyright-check.testscript4
-rw-r--r--tests/git-pre-commit.testscript4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/git-pre-commit-copyright-check.testscript b/tests/git-pre-commit-copyright-check.testscript
index f8e51f5..d05e99a 100644
--- a/tests/git-pre-commit-copyright-check.testscript
+++ b/tests/git-pre-commit-copyright-check.testscript
@@ -13,8 +13,8 @@
EOI
$ga .;
- $gc 2>>EOE;
- WARNING: last copyright year in 'LICENSE' is 2019
+ $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..fa380a0 100644
--- a/tests/git-pre-commit.testscript
+++ b/tests/git-pre-commit.testscript
@@ -36,7 +36,7 @@
EOI
$ga .;
- $gc 2>>EOE
- WARNING: last copyright year in 'LICENSE' is 2019
+ $gc 2>>~%EOE%
+ %.+WARNING:.+ last copyright year in 'LICENSE' is 2019%
EOE
}