rmdepcheck: report soft failure on pre-existing dep issue
All checks were successful
All checks were successful
I changed rmdepcheck to exit 0 but print a "Warning:" if there are pre-existing dependency issues. Let's pick that up here and treat it as a softfail. Technically it would be more 'correct' to parse the JSON output, I guess, but then we have to (re-)construct the text output for people to read...this is just easier. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
e12ba840ab
commit
4fe9689c78
1 changed files with 4 additions and 1 deletions
|
|
@ -59,11 +59,14 @@ sub run_rmdepcheck {
|
|||
}
|
||||
$cmd .= ' > /tmp/rmdepcheck.txt';
|
||||
my $res = script_run $cmd, 300;
|
||||
my $message = script_output 'cat /tmp/rmdepcheck.txt';
|
||||
if ($res) {
|
||||
my $message = script_output 'cat /tmp/rmdepcheck.txt';
|
||||
$test->record_resultfile('rmdepcheck', $message, result => 'fail');
|
||||
die 'rmdepcheck failed, check previous frame for output';
|
||||
}
|
||||
elsif ($message =~ m/^Warning:/m) {
|
||||
$test->record_resultfile('rmdepcheck', $message, result => 'softfail');
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue