Skip to content

Commit

Permalink
Add timeout for script_run "test -e $inventory"
Browse files Browse the repository at this point in the history
  • Loading branch information
badboywj committed Aug 21, 2024
1 parent 80f13df commit e4f489f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/qesapdeployment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,9 @@ sub qesap_cluster_log_cmds {
sub qesap_cluster_logs {
my $provider = get_required_var('PUBLIC_CLOUD_PROVIDER');
my $inventory = qesap_get_inventory(provider => $provider);
if (script_run("test -e $inventory") == 0)

send_key "ctrl-c";
if (script_run("test -e $inventory", 60) == 0)
{
foreach my $host ('hana[0]', 'hana[1]') {
foreach my $cmd (qesap_cluster_log_cmds()) {
Expand Down
1 change: 1 addition & 0 deletions tests/sles4sap/publiccloud/hana_sr_takeover.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ sub run {

# Stop/kill/crash HANA DB and wait till SSH is again available with pacemaker running.
$self->stop_hana(method => $takeover_action);
die "Trigger post_fail_hook";
$self->{my_instance}->wait_for_ssh(username => 'cloudadmin');

# SBD delay is active only after reboot
Expand Down

0 comments on commit e4f489f

Please sign in to comment.