I've been converting my test scripts to use atf_check -- command instead of running it and then checking the exit status atf_check_equal $? 0, making those tests shorter and easier to extend with additional checks that atf-check provides.
The only downside as of now is that it makes it harder to debug test scripts because atf-check hides stdout and stderr for successful executions.
It would be nice if there was some options to make atf-check more verbose.
- A command line argument to
atf-check like -v to always make it verbose (kyua already hides the output for successful tests).
- Maybe an environment variable like
ATF_DEBUG so that kyua debug could set it to allow easier debugging without having to change the test script.
I would be open to contributing those changes if they are likely to be accepted.
I've been converting my test scripts to use
atf_check -- commandinstead of running it and then checking the exit statusatf_check_equal $? 0, making those tests shorter and easier to extend with additional checks thatatf-checkprovides.The only downside as of now is that it makes it harder to debug test scripts because
atf-checkhides stdout and stderr for successful executions.It would be nice if there was some options to make
atf-checkmore verbose.atf-checklike-vto always make it verbose (kyua already hides the output for successful tests).ATF_DEBUGso thatkyua debugcould set it to allow easier debugging without having to change the test script.I would be open to contributing those changes if they are likely to be accepted.