rclanget / 42sh

1 stars 0 forks source link

bonuses/separators/mixed/005-or-and #82

Closed Wolfthuk closed 7 years ago

Wolfthuk commented 7 years ago

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_SUCCESS

STDERR: SUCCESS expected_to match_regex TOKEN201612111732_ERROR 01: TOKEN201612111732_ERROR

MISC: FAILURE expected_to exit_with_status 21

rclanget commented 7 years ago

Résolu