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/006-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 0 || ./write_on_stderr TOKEN201612111732_ERROR 21 && ./write_on_stdout TOKEN201612111732_SUCCESS
STDOUT: FAILURE expected_to match_regex
TOKEN201612111732_SUCCESS
(no output)STDERR: SUCCESS expected_to be_empty (no output)
MISC: SUCCESS expected_to exit_with_status
0