Description:
The purpose of this test is to check that using the two separators OR || and AND && applies the good logic: The second command is executed if the first one fails, and the third command is executed if the second one succeeds or is not executed.
bonuses/separators/mixed/004-or-and (FAILED)
Description: The purpose of this test is to check that using the two separators OR
||
and AND&&
applies the good logic: The second command is executed if the first one fails, and the third command is executed if the second one succeeds or is not executed.STDIN: 01: ./exit_with_status 42 || ./write_on_stderr TOKEN201612111732_ERROR 21 && ./write_on_stdout TOKEN201612111732_SUCCESS
STDOUT: SUCCESS expected_to be_empty (no output)
STDERR: SUCCESS expected_to match_regex
TOKEN201612111732_ERROR
01: TOKEN201612111732_ERRORMISC: FAILURE expected_to exit_with_status
21