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/005-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_stdout TOKEN201612111732_SUCCESS && ./write_on_stderr TOKEN201612111732_ERROR 21
STDOUT: SUCCESS expected_to match_regex
TOKEN201612111732_SUCCESS
01: TOKEN201612111732_SUCCESSSTDERR: SUCCESS expected_to match_regex
TOKEN201612111732_ERROR
01: TOKEN201612111732_ERRORMISC: FAILURE expected_to exit_with_status
21