test/system: Skip the test before doing any needless work
https://github.com/containers/toolbox/pull/1591
This commit is contained in:
parent
9b1f7aa573
commit
05202bb35c
|
@ -50,16 +50,16 @@ teardown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "container(Fedora Rawhide): Containers with supported versions start without issues" {
|
@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
|
local system_id
|
||||||
system_id="$(get_system_id)"
|
system_id="$(get_system_id)"
|
||||||
|
|
||||||
local system_version
|
local system_version
|
||||||
system_version="$(get_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
|
create_distro_container "$system_id" "$system_version" latest
|
||||||
run container_started latest
|
run container_started latest
|
||||||
assert_success
|
assert_success
|
||||||
|
|
Loading…
Reference in New Issue