Project

General

Profile

Actions

action #38606

closed

proceed_on_failure option in script_output is broken

Added by szarate almost 6 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2018-07-19
Due date:
% Done:

0%

Estimated time:

Description

apparently calling script_output('blah', proceed_on_failure => 1); ends up in the following:

[2018-07-19T13:50:15.0373 CEST] [debug] <<< testapi::wait_serial(regexp='SCRIPT_FINISHED25dbl-\\d+-', record_output=1, timeout='proceed_on_failure')
Argument "proceed_on_failure" isn't numeric in multiplication (*) at /usr/lib/os-autoinst/bmwqemu.pm line 316.

https://github.com/os-autoinst/os-autoinst/pull/954

Argument "proceed_on_failure" isn't numeric in multiplication (*) at /usr/lib/os-autoinst/bmwqemu.pm line 316.

Actions #1

Updated by asmorodskyi almost 6 years ago

I found root cause, it is really simple to fix the issue :
you need just call function in documented way - script_output('blah',30 , proceed_on_failure => 1);

Actions #2

Updated by mkittler over 5 years ago

So the issue can be considered resolved/rejected?

Actions #3

Updated by okurz over 5 years ago

  • Status changed from New to Rejected
  • Assignee set to okurz

yes, the "wait" parameter is simply a mandatory one. We can't fix perl's crazy approach of function parameter validation ;)

Actions #4

Updated by coolo almost 5 years ago

  • Target version changed from Ready to Done
Actions

Also available in: Atom PDF