2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-19 17:02:15 +00:00

test(packaging): a bail-out in the openSUSE spec test stops the whole suite

opensuse_pod2man_buildrequires.t called BAIL_OUT when rpmspec exited non-zero.
prove stops every remaining file on a bail-out, not only the one that called it,
so one unreadable spec would hide the result of the rest of the suite.

The close failure now dies, which fails that file alone.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
Daniel Hilst
2026-10-28 08:35:40 -03:00
parent 7e12f8d538
commit d3e4d010db
@@ -34,7 +34,7 @@ sub build_requires {
'--undefine', 'rhel', '--undefine', 'suse_version', '--undefine', 'openEuler',
'--define', $define, repo_path($spec)) or die "run rpmspec: $!";
my @requires = <$fh>;
close($fh) or BAIL_OUT("rpmspec failed for $spec with $define");
close($fh) or die "rpmspec failed for $spec with $define";
chomp @requires;
return @requires;
}