test/system: Skip the test before doing any needless work

https://github.com/containers/toolbox/pull/1591
This commit is contained in:
Debarshi Ray 2024-11-11 23:34:03 +01:00
parent 9b1f7aa573
commit 05202bb35c
1 changed files with 4 additions and 4 deletions

View File

@ -50,16 +50,16 @@ teardown() {
}
@test "container(Fedora Rawhide): Containers with supported versions start without issues" {
if ! is_fedora_rawhide; then
skip "This test is only for Fedora Rawhide"
fi
local system_id
system_id="$(get_system_id)"
local system_version
system_version="$(get_system_version)"
if ! is_fedora_rawhide; then
skip "This test is only for Fedora Rawhide"
fi
create_distro_container "$system_id" "$system_version" latest
run container_started latest
assert_success