Skip to content

Commit

Permalink
yast2_client_exit: in case of a soft-failure, return code 16 is a val…
Browse files Browse the repository at this point in the history
…id exit code

When the module is being closed and actually quits with an error, yast now correctly
returns errorcode != 0. So, together with recording the soffailure on exit, we also
need to adjust for the fact that we will now return with an error code.
  • Loading branch information
DimStar77 committed Jan 13, 2020
1 parent 9bb8d91 commit 7318cea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nfs_common.pm
Expand Up @@ -189,11 +189,13 @@ sub yast2_server_initial {
sub yast2_client_exit {
my $module_name = shift;
wait_screen_change { send_key 'alt-o' };
my $expret = "0";
if (check_screen("cannot-mount-nfs-from-fstab", 10)) {
send_key 'alt-o';
record_soft_failure 'bsc#1157892';
$expret = "{0,16}";
}
wait_serial("$module_name-0") or die "'yast2 $module_name' didn't finish";
wait_serial("$module_name-$expret") or die "'yast2 $module_name' didn't finish";
clear_console;
}

Expand Down

0 comments on commit 7318cea

Please sign in to comment.