Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

bwarden
Copy link
Member

@bwarden bwarden commented Aug 28, 2024

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

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
@bwarden bwarden requested a review from bryteise August 28, 2024 21:20
@bryteise bryteise merged commit e170bfd into clearlinux:master Aug 28, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants