]> git.notmuchmail.org Git - notmuch/commitdiff
test: add prereqs check in test_emacs_expect_t
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 1 May 2021 11:54:15 +0000 (06:54 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 2 May 2021 00:15:10 +0000 (21:15 -0300)
test_emacs may update the external prereqs, in which case we want to
skip the test rather than fail.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test/test-lib.sh

index 1067316dbb3f2b9ad1fd8c65d52cf3d9c3ca916a..72ac2e896604f7d976dd0cc7325036a9c581ec07 100644 (file)
@@ -592,6 +592,9 @@ test_emacs_expect_t () {
                exec 1>&6 2>&7          # Restore stdout and stderr
                inside_subtest=
 
+               # test_emacs may update missing external prerequisites
+               test_check_missing_external_prereqs_ "$test_subtest_name" && return
+
                # Report success/failure.
                result=$(cat OUTPUT)
                if [ "$result" = t ]