diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-12-14 20:36:48 +0200 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2011-12-14 20:39:13 +0200 |
commit | 34ce3e24a1d922b8778ec0b764540e5bc43155b4 (patch) | |
tree | a29ed01eb8f0afcaa26943e7b45f99ca80d368a3 /tester.sh | |
parent | fd8f94781f285d202662afea4bd98f68fd7b19d4 (diff) | |
download | dctrl-tools-34ce3e24a1d922b8778ec0b764540e5bc43155b4.tar.gz |
Bug #652034: Handle multiple instances of the same field gracefully.
For grep-dctrl, this means having -F search for all of the same-name
fields disjunctively. The -s option selects all same-name fields for
printing.
For the other tools, all but the first are ignored.
No string changes, so committing to maint-2.20 for release with 2.20.1.
Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
Diffstat (limited to 'tester.sh')
-rw-r--r-- | tester.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -46,6 +46,9 @@ for tst in $tests ; do if [ ! -r $tst_in ] ; then tst_in=/dev/null fi + if [ ! -r $tst_ero ] ; then + tst_ero=/dev/null + fi if [ ! -r $tst_out ] && [ ! -r $tst_err ] ; then echo 1>&2 "neither $tst_out nor $tst_err exists" exit 1 @@ -82,10 +85,8 @@ for tst in $tests ; do echo "FAILED." echo "stdout diff:" cat .diffout - if [ -r $tst_ero ] ; then - echo "stderr diff:" - cat .differr - fi + echo "stderr diff:" + cat .differr rv=1 fi done |