Bats Concepts
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* ]]