Actions
action #13710
closedaction #10558: improve yast2_lan test robustness
yast2_lan fails on script_sudo matching previous password prompt
Start date:
2016-09-13
Due date:
% Done:
100%
Estimated time:
Difficulty:
Description
yast2_lan matches password prompt from previous steps
Problem:
- assert_script_sudo "zypper -n in yast2-network"
- password prompt matched & password typed
- script_sudo("/sbin/yast2 lan; echo yast2-lan-status-\$? > /dev/$serialdev", 0);
- password prompt from step #1 is matched & password typed
- password for step #2 is available, but password was already typed
Updated by mkravec over 8 years ago
- % Done changed from 0 to 100
Updated by okurz over 8 years ago
- Status changed from Resolved to In Progress
the explicit script_run
now has another problem: https://openqa.opensuse.org/tests/265596#step/prepare_system_for_update_tests/4
I guess $self->script_run("clear");
in lib/susedistribution.pm
is a bit too much "high level code" in this distribution implementation of script_sudo. Maybe just using $self->script_run("clear", 0);
helps because it just types the clear
with a following ret
key but as two indidvidual commands to give enough time to execute but not rely on the serialdev, can you check?
Updated by mkravec over 8 years ago
- Status changed from In Progress to Resolved
Actions