diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-04-19 14:15:17 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2013-04-19 14:30:52 +0200 |
commit | 375cd196b718de69722c962e4ae944f91957562c (patch) | |
tree | 14bf094e262f52a5a2d023dbdb4e6d64f6f47994 /t/preproc-errmsg.sh | |
parent | f6edf9d31204204907b67f167516bd5082b78d0c (diff) | |
download | automake-375cd196b718de69722c962e4ae944f91957562c.tar.gz |
maintcheck: avoid spurious failure
* t/preproc-errmsg.sh: Here, breaking up a sed command to avoid spuriously
triggering a failure in the 'sc_tests_logs_duplicate_prefixes' maintainer
check.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/preproc-errmsg.sh')
-rwxr-xr-x | t/preproc-errmsg.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/t/preproc-errmsg.sh b/t/preproc-errmsg.sh index d7cf488d2..704562dcd 100755 --- a/t/preproc-errmsg.sh +++ b/t/preproc-errmsg.sh @@ -65,10 +65,13 @@ sub/local.mk:4: library has 'sub_x2' as canonical name (possible typo) Makefile.am:2: 'sub/local.mk' included from here END -sed -e '/warnings are treated as errors/d' \ - -e 's/: warning:/:/' -e 's/: error:/:/' \ - -e 's/ */ /g' \ - <stderr >obtained +# We need to break these substitutions into multiple sed invocations +# to avoid spuriously triggering the 'sc_tests_logs_duplicate_prefixes' +# maintainer check. +sed -e '/warnings are treated as errors/d' stderr > t1 +sed -e 's/: warning:/:/' t1 > t2 +sed -e 's/: error:/:/' t2 > t3 +sed -e 's/ */ /g' t3 > obtained diff expected obtained |