Closed Wolfthuk closed 7 years ago
bonuses/separators/and/errors/001-parse-error-at-beginning (WARNING)
Description: Parsing test. The purpose of this test is to check that the AND operator && must be placed after a valid command. If not, the Shell should display an error and exit with an error status code.
&&
STDIN: 01: && ./write_on_stdout TOKEN201612111732
STDOUT: SUCCESS might_not match_regex TOKEN201612111732 WARNING might be_empty 01: 42sh: parse error near '&&'
TOKEN201612111732
STDERR: WARNING might_not be_empty WARNING might match_regex ([Ss]yntax|[Pp]arse) error (no output)
([Ss]yntax|[Pp]arse) error
MISC: WARNING might_not exit_with_status 0
0
Done
bonuses/separators/and/errors/001-parse-error-at-beginning (WARNING)
Description: Parsing test. The purpose of this test is to check that the AND operator
&&
must be placed after a valid command. If not, the Shell should display an error and exit with an error status code.STDIN: 01: && ./write_on_stdout TOKEN201612111732
STDOUT: SUCCESS might_not match_regex
TOKEN201612111732
WARNING might be_empty 01: 42sh: parse error near '&&'STDERR: WARNING might_not be_empty WARNING might match_regex
([Ss]yntax|[Pp]arse) error
(no output)MISC: WARNING might_not exit_with_status
0