test/system: Fix indentation

https://github.com/containers/toolbox/pull/1192
This commit is contained in:
Debarshi Ray 2022-12-07 20:01:38 +01:00
parent 0fde202d82
commit f0a805af84

View file

@ -100,20 +100,20 @@ teardown() {
}
@test "list: List an image without a name" {
echo -e "FROM scratch\n\nLABEL com.github.containers.toolbox=\"true\"" > "$BATS_TMPDIR"/Containerfile
echo -e "FROM scratch\n\nLABEL com.github.containers.toolbox=\"true\"" > "$BATS_TMPDIR"/Containerfile
run $PODMAN build "$BATS_TMPDIR"
run $PODMAN build "$BATS_TMPDIR"
assert_success
assert_line --index 0 --partial "FROM scratch"
assert_line --index 1 --partial "LABEL com.github.containers.toolbox=\"true\""
assert_line --index 2 --partial "COMMIT"
assert_line --index 3 --regexp "^--> [a-z0-9]*$"
assert_success
assert_line --index 0 --partial "FROM scratch"
assert_line --index 1 --partial "LABEL com.github.containers.toolbox=\"true\""
assert_line --index 2 --partial "COMMIT"
assert_line --index 3 --regexp "^--> [a-z0-9]*$"
run --keep-empty-lines $TOOLBOX list
run --keep-empty-lines $TOOLBOX list
assert_success
assert_line --index 1 --partial "<none>"
assert_success
assert_line --index 1 --partial "<none>"
rm -f "$BATS_TMPDIR"/Containerfile
rm -f "$BATS_TMPDIR"/Containerfile
}