Skip to content

Commit 3dd9617

Browse files
authored
Merge pull request #5 from thin-edge/test-fails-on-non-zero-code
test: add test case to check command failure
2 parents 73046fc + ea2076d commit 3dd9617

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/shell.robot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Execute command
2020
Operation Should Be SUCCESSFUL ${operation}
2121
Should Be Equal ${operation.to_json()["c8y_Command"]["result"]} helloworld\n
2222

23+
Execute command that fails
24+
${operation}= Cumulocity.Create Operation
25+
... description=example
26+
... fragments={"c8y_Command":{"text":"echo foo; exit 1"}}
27+
28+
Operation Should Be FAILED ${operation}
29+
2330
*** Keywords ***
2431

2532
Test Setup

0 commit comments

Comments
 (0)