aboutsummaryrefslogtreecommitdiff
path: root/test/test-lib.sh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2021-05-01 06:54:15 -0500
committerDavid Bremner <david@tethera.net>2021-05-01 21:15:10 -0300
commit049a652da7a692704348085a817b0086a44d5435 (patch)
treebbb9da9a5a31dcfca9ea4d96a08ef83ff3147929 /test/test-lib.sh
parent7579f3ac6bc1de2b110661f30241e4c316f5f560 (diff)
test: add prereqs check in test_emacs_expect_t
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>
Diffstat (limited to 'test/test-lib.sh')
-rw-r--r--test/test-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 1067316d..72ac2e89 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -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 ]