From 25cd5ac5af8116bd9b63c256aa2c23b4457baec3 Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Thu, 6 Feb 2020 20:26:57 -0500 Subject: [PATCH] Use the configured system shell in tests. * Makefile.am (AM_TESTS_ENVIRONMENT): New variable. * tests/redirects.org (Files opened for redirect can be executed immediately): Use an environment variable instead of hard-coding '/bin/sh'. --- Makefile.am | 1 + tests/redirects.org | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 32f2748..e14fea8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -121,6 +121,7 @@ override $(srcdir)/doc/version.texi: # Tests ####### +AM_TESTS_ENVIRONMENT = SYSTEM_SHELL='$(SHELL)'; export SYSTEM_SHELL; TEST_EXTENSIONS = .scm .org SCM_LOG_COMPILER = $(top_builddir)/pre-inst-env $(GUILE) AM_SCM_LOG_FLAGS = --no-auto-compile diff --git a/tests/redirects.org b/tests/redirects.org index 10c19bb..be69082 100644 --- a/tests/redirects.org +++ b/tests/redirects.org @@ -156,7 +156,7 @@ :script: #+begin_src sh cat > $TEST_TMP/foo.sh <