Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 570 Bytes

21-exit_codes.md

File metadata and controls

29 lines (21 loc) · 570 Bytes

<< back

Example: exit_codes

result stores information from the last command executed by a "run" action. Offers many functions) that transforms output data, and also exitcode is captured.

Example

  target "Exist user root (exit code ok)"
  run "id root"
  expect_exit 0

  target "No user vader (exit code fail)"
  run "id vader"
  expect_exit 1

More examples

  target "Using a range"
  run "id vader"
  expect_exit 1..3

  target "Using a list"
  run "id vader"
  expect_exit [1, 3, 7]