test/system: Check the standard error & output streams separately

https://github.com/containers/toolbox/pull/1278
This commit is contained in:
Debarshi Ray 2023-03-21 16:33:09 +01:00
parent e22a82fec8
commit 9cae66ddd8

View file

@ -31,24 +31,27 @@ teardown() {
@test "list: Smoke test" {
run --keep-empty-lines $TOOLBOX list
run --keep-empty-lines --separate-stderr $TOOLBOX list
assert_success
assert_output ""
assert [ ${#lines[@]} -eq 0 ]
assert [ ${#stderr_lines[@]} -eq 0 ]
}
@test "list: Smoke test (using --containers)" {
run --keep-empty-lines $TOOLBOX list --containers
run --keep-empty-lines --separate-stderr $TOOLBOX list --containers
assert_success
assert_output ""
assert [ ${#lines[@]} -eq 0 ]
assert [ ${#stderr_lines[@]} -eq 0 ]
}
@test "list: Smoke test (using --images)" {
run --keep-empty-lines $TOOLBOX list --images
run --keep-empty-lines --separate-stderr $TOOLBOX list --images
assert_success
assert_output ""
assert [ ${#lines[@]} -eq 0 ]
assert [ ${#stderr_lines[@]} -eq 0 ]
}
@test "list: With just one non-Toolbx image" {
@ -58,10 +61,11 @@ teardown() {
assert_output --partial "$BUSYBOX_IMAGE"
run --keep-empty-lines $TOOLBOX list
run --keep-empty-lines --separate-stderr $TOOLBOX list
assert_success
assert_output ""
assert [ ${#lines[@]} -eq 0 ]
assert [ ${#stderr_lines[@]} -eq 0 ]
}
@test "list: An image without a name" {