In
power: Record approach used for power cycles in runvars
we introduced a reference to $r{$rv} which might be undef,
resulting in this:
Use of uninitialized value in concatenation (.) or string at Osstest/TestSupport.pm line 1069.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
logm("power: rebooted $ho->{Name} (using $approach->{Name})");
if (defined $record_runvar_tail) {
my $rv = "$ho->{Ident}_power_${record_runvar_tail}";
- my $newval = $r{$rv}.(!!length($r{$rv}) and ',')
+ my $newval = ($r{$rv} // '').(!!length($r{$rv}) and ',')
.$approach->{Name};
store_runvar($rv, $newval);
}