Hi Jakub, Jakub Wilk wrote: > * 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.
This could be solved by making the one or the other behaviour optional via a commandline switch. But no hurries if you want to implement this properly. :-) > >This would be helpful for using adequate within autopkgtest tests. > > adequate has a DEP-8 test that checks if it is adequate-clean. Saw them, yes. > But I haven't thought about using it in other packages' > autopkgtests. Very clever, thanks for the hint. :-) Oh? This seemed so obvious to me. As it would be made for that. :-) > In the mean time you can exploit the fact that non-empty stderr is > by default considered an error: > > adequate whizzytex >&2 Ah, good point. Will do that. > Or, if you use the allow-stderr restriction, you can use this > monstrosity: > > adequate whizzytex 2>&1 | ( ! grep . ) Saw that in adequate's own autopkgtests and wasn't really sure what it should do. (Wasn't aware of this kind of "!" usage inside parentheses in POSIX sh.) Regards, Axel -- ,''`. | Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org