simonmichael / shelltestrunner

Easy, repeatable testing of CLI programs/commands
GNU General Public License v3.0
130 stars 10 forks source link

--print generates invalid v2, v3 output #26

Closed simonmichael closed 3 years ago

simonmichael commented 4 years ago

It always shows the command first, when it should be input first for formats 2 and 3. Eg:

$ cat a.test
false
<<<
input
>>>
>>>=1

$ shelltest a.test --print=v1
false
<<<
input
>>>= 1

$ shelltest a.test --print=v2
$$$ false
<<<
input
>>>= 1

$ shelltest a.test --print=v3
$ false
<
input
>= 1
simonmichael commented 4 years ago

It should be more like:

$ shelltest a.test --print=v2
<<<
input
$$$ false
>>>= 1

$ shelltest a.test --print=v3
<
input
$ false
>= 1