test/system: Properly bail-out if failed to cache images

The 'die' function is a remnant from times before the system tests
rewrite. It served for writing an error message and then failing
the test. Since the rewrite it is no longer present. Instead, simply
use 'false' in case a caching step fails.

Fallout from da6b6a7c5a

https://github.com/containers/toolbox/pull/899
This commit is contained in:
Ondřej Míchal 2021-11-09 11:34:10 +02:00
parent b14d623f21
commit ae8bd1a9c9
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ load 'libs/helpers'
@test "test suite: Setup" { @test "test suite: Setup" {
_setup_environment _setup_environment
# Cache the default image for the system # Cache the default image for the system
_pull_and_cache_distro_image $(get_system_id) $(get_system_version) || die _pull_and_cache_distro_image $(get_system_id) $(get_system_version) || false
# Cache all images that will be needed during the tests # Cache all images that will be needed during the tests
_pull_and_cache_distro_image fedora 32 || die _pull_and_cache_distro_image fedora 32 || false
_pull_and_cache_distro_image busybox || die _pull_and_cache_distro_image busybox || false
} }