[pkg-bacula-devel] autopkgtest: A choice to be made

Sven Hartge sven at svenhartge.de
Sun Nov 25 15:26:50 GMT 2018

On 25.11.18 15:38, Sven Hartge wrote:
> On 24.11.18 19:25, Carsten Leonhardt wrote:
>> there may be a way to redirect messages correctly, but straightforward
>> and easy to understand would be to use echo (maybe a function
>> "exec_verbose" that first prints the command line and then executes
>> it?).
> The solution is this here:
> trap 'echo "$BASH_COMMAND"' DEBUG
> I am testing a variant of this in my personal git space and will
> implement it in the autopkgtest branch once it proves to be working.

Yes, this works very nice and gives us the best of both worlds: a bit
more verbosity while running the tests and also the ability to fail on
output to STDERR, which would have caught my error before releasing a
new package.

I've updated the autopkgtest branch accordingly.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20181125/9471e926/attachment.sig>

More information about the pkg-bacula-devel mailing list