action #19226
closed[regression] script run dies
0%
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
Updated by okurz almost 8 years ago
- Related to action #19224: Argument isn't numeric in numeric eq (==) at /usr/lib/os-autoinst/testapi.pm line 734. added
Updated by okurz almost 8 years ago
- Status changed from New to In Progress
- Assignee set to okurz
Updated by okurz almost 8 years ago
- Project changed from openQA Tests (public) to openQA Project (public)
- Category changed from Bugs in existing tests to Regressions/Crashes
- Status changed from In Progress to Feedback
https://github.com/os-autoinst/os-autoinst/pull/779 from mnowak should fix it. Waiting for deployment.
Updated by okurz almost 8 years ago
- Status changed from Feedback to Resolved