Control: tags -1 confirmed

* Axel Beckert <a...@debian.org>, 2014-03-29, 04:00:
it would be useful if adequate would indicate in its exit code if it emitted warnings or not.

Agreed. But this will almost certainly break piuparts, so I'll have to talk to piuparts folks first.

What doesn't work as expected:

$ adequate whizzytex ; echo $?
whizzytex: broken-symlink /usr/share/doc/whizzytex/examples/mlpost/mlpostx.native 
-> _build/mlpostx.native
0
$

What I expected:

$ adequate whizzytex ; echo $?
whizzytex: broken-symlink /usr/share/doc/whizzytex/examples/mlpost/mlpostx.native 
-> _build/mlpostx.native
1
$

This would be helpful for using adequate within autopkgtest tests.

adequate has a DEP-8 test that checks if it is adequate-clean. But I haven't thought about using it in other packages' autopkgtests. Very clever, thanks for the hint. :-)

In the mean time you can exploit the fact that non-empty stderr is by default considered an error:

adequate whizzytex >&2

Or, if you use the allow-stderr restriction, you can use this monstrosity:

adequate whizzytex 2>&1 | ( ! grep . )

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to