openQA icon indicating copy to clipboard operation
openQA copied to clipboard

Avoid warning about use of uninitialized value

Open Martchus opened this issue 1 year ago • 3 comments

The variable $testsuite_name might be undef if the spec is an empty hash leading to:

Use of uninitialized value $testsuite_name in hash element at /usr/share/openqa/script/../lib/OpenQA/Schema/Result/JobGroups.pm line 413.

We can just skip empty specs here avoiding the warning.

Martchus avatar Mar 21 '24 13:03 Martchus

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.39%. Comparing base (e985d28) to head (3a4a737). Report is 96 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5540   +/-   ##
=======================================
  Coverage   98.39%   98.39%           
=======================================
  Files         391      391           
  Lines       38039    38039           
=======================================
  Hits        37427    37427           
  Misses        612      612           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 21 '24 14:03 codecov[bot]

where did you see this error? do you have the according yaml file?

perlpunk avatar Mar 21 '24 14:03 perlpunk

In the log on OSD and no, I don't have the yaml file.

Martchus avatar Mar 21 '24 14:03 Martchus

Superseded by https://github.com/os-autoinst/openQA/pull/5583.

Martchus avatar Apr 22 '24 15:04 Martchus