[regression] script run dies
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
#3 Updated by okurz over 5 years ago
- Project changed from openQA Tests to openQA Project
- Category changed from Bugs in existing tests to Concrete Bugs
- Status changed from In Progress to Feedback
https://github.com/os-autoinst/os-autoinst/pull/779 from mnowak should fix it. Waiting for deployment.