clearlinux / swupd-client

Software update client
Other
114 stars 61 forks source link

Skip tests that require two builds in a format when there's only one #1634

Closed bwarden closed 2 weeks ago

bwarden commented 2 weeks ago

We already detect and report that certain tests require at least two builds within the current format, but only one exists. Change that from a test failure to a skip.

Example:

We need at least 2 versions in format 38 to continue with this test
Test teardown complete.
not ok 2 RCT002: Repair a big system
# (from function `test_setup' in file test/real_content/real_content_lib.bash, line 144,
#  from function `setup' in test file test/real_content/../functional/testlib.bash, line 4647)
#   `test_setup' failed
#

becomes:

ok 2 RCT002: Repair a big system # skip We need at least 2 versions in format 38 to continue with this test