]> git.ipfire.org Git - thirdparty/automake.git/commit
tap: log all TAP stream, even after a "Bail out!"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 12 Aug 2011 13:51:12 +0000 (15:51 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 12 Aug 2011 15:06:28 +0000 (17:06 +0200)
commite7ca7771e57e0d02c9dedf0e3bfc5128b397d7f2
tree15fa0b47fcc9ce76dfbbd5da2f0926b2f2e3c0f1
parent52a130494d747f224f4d6cc7a487942179857135
tap: log all TAP stream, even after a "Bail out!"

* lib/tap-driver ($bailed_out): New global boolean variable,
telling whether a "Bail out!" directive has been seen or not.
(handle_tap_bailout): This function does not anymore stop the
reading from TAP stream; instead, it sets `$bailed_out' to a
true value, so that only the subsequent parsing of the input
TAP stream is stopped.
(finish): Remove, no more needed, its contents inlined into ...
(main): ... this function, with related adjustments in the code
flow.
(get_test_exit_message): Do not "flush" the input TAP stream
to fetch the exit status of test script, it is not anymore
required.  Add a sanity check.
* tests/tap-bailout-and-logging.test: New test.
* tests/Makefile.am (tap_with_common_setup_tests): Update.
ChangeLog
lib/tap-driver
tests/Makefile.am
tests/Makefile.in
tests/tap-bailout-and-logging.test [new file with mode: 0755]