Skip to content

Commit

Permalink
osbuild-image-test: don't fail if there are no tests
Browse files Browse the repository at this point in the history
Hard fail when there are no test manifests for the given distro and arch
make it unnecessarily complicated to enable new distro and generate
manifests for them (it would have to be done in two steps). There is
IMHO really no good reason to hard fail if there are no test manifests
for the selected distro and arch. Print a warning and exit gracefully.

Signed-off-by: Tomáš Hozza <[email protected]>
  • Loading branch information
thozza committed Jul 23, 2024
1 parent b79d35a commit e54feab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/osbuild-image-test
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def run_tests_cases(args):

success = True
if not tests:
print(f"{RED}FAIL{RESET}: no tests to run")
return 1
print(f"{YELLOW}WARN{RESET}: no tests to run")
return 0

# compute the bucket of tests this instance is gonna run.
# by default, the bucket size is the entire test set and the bucket number
Expand Down

0 comments on commit e54feab

Please sign in to comment.