Files
skopeo/tests/rm.bats
Boaz Shuster f29314579d Return multi errors in buildah-rm
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>

Closes: #458
Approved by: rhatdan
2018-02-12 12:02:37 +00:00

13 lines
567 B
Bash

#!/usr/bin/env bats
load helpers
@test "remove multiple containers errors" {
run buildah --debug=false rm mycontainer1 mycontainer2 mycontainer3
[ "${lines[0]}" == "error removing container \"mycontainer1\": error reading build container: container not known" ]
[ "${lines[1]}" == "error removing container \"mycontainer2\": error reading build container: container not known" ]
[ "${lines[2]}" == "error removing container \"mycontainer3\": error reading build container: container not known" ]
[ $(wc -l <<< "$output") -eq 3 ]
[ "${status}" -eq 1 ]
}