mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
test: fix wrong SKIP messages
When the external prereqs are updated inside the body of the command (e.g. test_emacs) the message in test_report_skip_ is wrong: it outputs the body of the command instead of the subtest name. We need to pass the same argument we pass to test_skip. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
0b48e65526
commit
7579f3ac6b
1 changed files with 2 additions and 2 deletions
|
@ -919,7 +919,7 @@ test_expect_success () {
|
|||
test_run_ "$1"
|
||||
run_ret="$?"
|
||||
# test_run_ may update missing external prerequisites
|
||||
test_check_missing_external_prereqs_ "$@" ||
|
||||
test_check_missing_external_prereqs_ "$test_subtest_name" ||
|
||||
if [ "$run_ret" = 0 -a "$eval_ret" = 0 ]
|
||||
then
|
||||
test_ok_
|
||||
|
@ -943,7 +943,7 @@ test_expect_code () {
|
|||
test_run_ "$2"
|
||||
run_ret="$?"
|
||||
# test_run_ may update missing external prerequisites,
|
||||
test_check_missing_external_prereqs_ "$@" ||
|
||||
test_check_missing_external_prereqs_ "$test_subtest_name" ||
|
||||
if [ "$run_ret" = 0 -a "$eval_ret" = "$1" ]
|
||||
then
|
||||
test_ok_
|
||||
|
|
Loading…
Reference in a new issue