You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pytest.mark.skipif(onWindows(),
reason="Instance of Cwltool is used, On windows that invoke a default docker Container")
def test_overrides(self):
sio = StringIO()
self.assertEquals(main([get_data('tests/override/echo.cwl'),
get_data('tests/override/echo-job.yml')],
stdout=sio), 0)
The problem is that the standard shell for executing commands from a string in cwltool is /bin/sh which does not support -n argument to echo on MacOS. We can either change the default shell to /bin/bash for MacOS specifically or for cwltool in general. Are there specific reasons to use /bin/sh by default, @tetron ?
@anton-khodak Good catch. I'm guessing the assumption of the availability of -n was an oversight. The shell needs to be a POSIX shell, so the use of /bin/sh is correct.
Activity
anton-khodak commentedon Jan 27, 2018
The problem is that the standard shell for executing commands from a string in cwltool is
/bin/shwhich does not support-nargument toechoon MacOS. We can either change the default shell to/bin/bashfor MacOS specifically or for cwltool in general. Are there specific reasons to use/bin/shby default, @tetron ?mr-c commentedon Jan 28, 2018
@anton-khodak Good catch. I'm guessing the assumption of the availability of
-nwas an oversight. The shell needs to be a POSIX shell, so the use of/bin/shis correct.mr-c commentedon Jan 28, 2018
@anton-khodak I think it would be fine to drop the
-nand amend the tests to expect the newline characterSquashed 'cwltool/schemas/' changes from 0f28896..0d75172e
Squashed 'cwltool/schemas/' changes from 0f28896..721aa892