Subject: Re: bug#70196: 30.0.50; sh-script-tests fails

From: Michael Albinus <[email-masked]>
Date: Thu, 04 Apr 2024 17:02:22 +0200

Michael Albinus <[email-masked]> writes:

Hi Eli,

>>> Test test-basic-sh-indentation backtrace:
>>>   signal(ert-test-failed (((should (equal (buffer-string) "myecho () {
>>>   ert-fail(((should (equal (buffer-string) "myecho () {\n    echo foo\
>>
>> Not reproducible here.
>
> Will debug. Perhaps it is because I use tcsh as standard shell, which
> isn't POSIX conform.

The following works for me w/o problems:

--8<---------------cut here---------------start------------->8---
# bash -ic "make -C test sh-script-tests"
--8<---------------cut here---------------end--------------->8---

And the following shows the errors:

--8<---------------cut here---------------start------------->8---
# tcsh -ic "make -C test sh-script-tests"
--8<---------------cut here---------------end--------------->8---

So I guess one must check the used shell, when starting the tests.

Best regards, Michael.