mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 10:46:23 +00:00
Improve the test framework
The executeOk() function should dump stderr to the log in event of failure, but execute() need not.
This commit is contained in:
parent
bc7f7aeaaf
commit
f8850535ad
@ -1760,7 +1760,6 @@ tfw_quietly() {
|
||||
execute() {
|
||||
$_tfw_assert_noise && tfw_log "# execute" $(shellarg "$@")
|
||||
_tfw_getopts execute "$@"
|
||||
_tfw_dump_on_fail --stderr
|
||||
shift $_tfw_getopts_shift
|
||||
_tfw_execute "$@"
|
||||
}
|
||||
@ -1769,6 +1768,7 @@ executeOk() {
|
||||
$_tfw_assert_noise && tfw_log "# executeOk" $(shellarg "$@")
|
||||
_tfw_getopts executeok "$@"
|
||||
_tfw_opt_exit_status=0
|
||||
_tfw_dump_on_fail --stderr
|
||||
shift $_tfw_getopts_shift
|
||||
_tfw_execute "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user