Mercurial > evolve
comparison tests/test-check-tag.t @ 6868:b3261527f770 stable
tests: replace obsolescent fgrep with grep -F
This avoids the warning “fgrep: warning: fgrep is obsolescent; using grep -F”
on my Arch Linux system.
This is similar to 65f949da8469 in core.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 02 Feb 2024 00:12:49 +0100 |
parents | cdd1ffb88dd6 |
children | 0a1ed671eb7a |
comparison
equal
deleted
inserted
replaced
6867:cdd1ffb88dd6 | 6868:b3261527f770 |
---|---|
24 > # Here we skip: | 24 > # Here we skip: |
25 > # - pullbundle because it usually has no changes (so no version bump) | 25 > # - pullbundle because it usually has no changes (so no version bump) |
26 > if hg grep --rev $node '^__version__ = .*\.dev' hgext3rd/evolve/ hgext3rd/topic/; then | 26 > if hg grep --rev $node '^__version__ = .*\.dev' hgext3rd/evolve/ hgext3rd/topic/; then |
27 > echo "Versions should not end with .dev at tagged revision $node" | 27 > echo "Versions should not end with .dev at tagged revision $node" |
28 > fi | 28 > fi |
29 > entry=`hg cat --rev $node CHANGELOG | fgrep "$tags"` | 29 > entry=`hg cat --rev $node CHANGELOG | grep -F "$tags"` |
30 > if [ -z "$entry" ]; then | 30 > if [ -z "$entry" ]; then |
31 > echo "Revision $node has no CHANGELOG entry for $tags" | 31 > echo "Revision $node has no CHANGELOG entry for $tags" |
32 > fi | 32 > fi |
33 > if echo "$entry" | grep -E -vq ' -- [0-9]{4}-[0-9]{2}-[0-9]{2}'; then | 33 > if echo "$entry" | grep -E -vq ' -- [0-9]{4}-[0-9]{2}-[0-9]{2}'; then |
34 > echo "CHANGELOG entry for $tags should have a date in YYYY-MM-DD format: $entry" | 34 > echo "CHANGELOG entry for $tags should have a date in YYYY-MM-DD format: $entry" |
35 > fi | 35 > fi |
36 > entry=`hg cat --rev $node debian/changelog | fgrep "$tags"` | 36 > entry=`hg cat --rev $node debian/changelog | grep -F "$tags"` |
37 > if [ -z "$entry" ]; then | 37 > if [ -z "$entry" ]; then |
38 > echo "Revision $node has no debian/changelog entry for $tags" | 38 > echo "Revision $node has no debian/changelog entry for $tags" |
39 > fi | 39 > fi |
40 > done | 40 > done |