Bats Concepts

From NovaOrdis Knowledge Base
Revision as of 00:00, 2 October 2019 by Ovidiu (talk | contribs) (Created page with "=Internal= * bats =Test= ==Run a Command and Check the Status and Output== <syntaxhighlight lang='bash'> some_command=.... [...] run ${some_command} ${...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Test

Run a Command and Check the Status and Output

some_command=....
[...]
run ${some_command}
[[ ${status} -eq 0 ]]
[[ ${output} =~ .*Stack[[:space:]]c3[[:space:]]is[[:space:]]stable[[:space:]]and[[:space:]]running* ]]

Setup/Teardown