Actions
action #19226
closed[regression] script run dies
Start date:
2017-05-18
Due date:
% Done:
0%
Estimated time:
Description
Test run used for analysis: https://openqa.opensuse.org/tests/405291#step/network_configuration/7
the script run correctly output "1Q7_W-0-" in serial0.txt, indicating that the command was successful.
From autoinst.txt though:
Argument "1Q7_W-0-\r\n" isn't numeric in numeric eq (==) at /usr/lib/os-autoinst/testapi.pm line 734.
This issue was introduced with https://github.com/os-autoinst/os-autoinst/commit/3bba01e77adf5dea58c1cbd538e74f8990c25742, where we now have:
my $ret = wait_serial("$str-\\d+-", $wait);
_handle_script_run_ret($ret, $cmd);
$ret will contain the entire string as returned on the serial console (e.g. 1Q7_W-0), which is then compared in _handle_script_run_ret at:
croak $die_msg unless ($ret == 0);
$ret being the entire string from the serial, not stripped to the actual return code, causes this error
Actions