From 1a28128fdeeeeb9152c3a7289c638e465853d489 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 14 Jun 2012 08:54:35 -0500 Subject: [PATCH] If heirloom shell is in /usr/lib/heirloom/5bin/sh, use it to run tests. --- docs/contrib/build_nmh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index e367da5..335e042 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -278,6 +278,15 @@ if [ $status -eq 0 ]; then status=$? if [ $status -eq 0 ]; then + if [ "${TESTS_SHELL}"x = x ]; then + #### Bonus: use heirloom shell to test, if available, and if + #### TESTS_SHELL hadn't already been set. + heirloom_shell=/usr/lib/heirloom/5bin/sh + if [ -x "${heirloom_shell}" ]; then + TESTS_SHELL="${heirloom_shell}"; export TESTS_SHELL + fi + fi + [ $verbose -ge 1 ] && echo testing . . . checkoutput=`make $check 2>>$logfile` status=$? -- 1.7.10.4