Skip to content

Commit

Permalink
Add softfail for systemd-testkit version
Browse files Browse the repository at this point in the history
  • Loading branch information
openQA web UI committed Nov 1, 2024
1 parent 670425e commit 05dd4d6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/console/start_systemd_testkit_offline.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,18 @@ sub parse_results_from_output {

if ($outcome eq 'failed') {
# In case you need to add soft failure, use the following commented code as a guide
#my ($openQA_result, $softfail_result);
#if ($error_line =~ /problems.*hostagent.service/) {
# $openQA_result = $self->record_testresult('softfail');
# $softfail_result = 119565;
#} else {
my $openQA_result = $self->record_testresult('fail');
#$softfail_result = 0;
#}
my ($openQA_result, $softfail_result);
if ($error_line =~ /invalid version '254', expected '234'/) {
$openQA_result = $self->record_testresult('softfail');
$softfail_result = 1231034;
} else {
my $openQA_result = $self->record_testresult('fail');
$softfail_result = 0;
}
my $openQA_filename = $self->next_resultname('txt');
$openQA_result->{title} = $testunit;
$openQA_result->{text} = $openQA_filename;
#($softfail_result) ? $self->write_resultfile($openQA_filename, "# Softfail bsc#$softfail_result:\n$error_line\n") :
($softfail_result) ? $self->write_resultfile($openQA_filename, "# Softfail bsc#$softfail_result:\n$error_line\n") :
$self->write_resultfile($openQA_filename, "# Failure:\n$error_line\n");
$self->{dents}++;
}
Expand Down

0 comments on commit 05dd4d6

Please sign in to comment.