$output  –  Combined Output of The Last run Command

$output contains the combined content of STDOUT and STDERR of the last executed run command.

Examples

Print status code of run
1
2
3
4
5
@test "Example" {
  run cat nonexistent_filename
  echo "Status: $status" >&3
  echo "Output: $output" >&3
}
BashSupport Pro ist eine Shell-Skript-IDE mit Unterstützung für $output von bats-core - probieren Sie es jetzt aus!
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches