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 3870dc5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/console/start_systemd_testkit_offline.pm
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,22 @@ sub parse_results_from_output {
# $openQA_result = $self->record_testresult('softfail');
# $softfail_result = 119565;
#} else {
my $openQA_result = $self->record_testresult('fail');
#my $openQA_result = $self->record_testresult('fail');
#$softfail_result = 0;
#}
my ($openQA_result, $softfail_result);
if ($error_line =~ m/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 3870dc5

Please sign in to comment.