build: test-driver.scm: Add a new '--errors-only' option.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 18 Jan 2021 05:19:06 +0000 (00:19 -0500)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 1 Feb 2021 03:28:46 +0000 (22:28 -0500)
commit93a628c4e4f4a7f6665190f3c52a417daebaf28a
tree052e91f12b655bee6d9732f51f9eb0da81ba7763
parenta1ea2acb376c8a74f41ce0e683680417207b365a
build: test-driver.scm: Add a new '--errors-only' option.

* build-aux/test-driver.scm (show-help): Add the help text for the
new '--errors-only' option.
(%options): Add the errors-only option.
(test-runner-gnu): Add the errors-only? parameter and update doc.  Move the
logging of the test data after the test has completed, so a choice can be made
whether to keep it or discard it based on the value of the test result.
(main): Pass the errors-only? option to the driver.
* doc/guix.texi (Running the Test Suite): Document the new option.
build-aux/test-driver.scm
doc/guix.texi