mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-25 14:41:27 +00:00
post_fail_hook: hit ctrl-c if 'dnf -y installer tar' gets stuck
This happens in the iSCSI install test. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
fe8f4ce482
commit
ddea8e2169
@ -56,8 +56,9 @@ sub post_fail_hook {
|
|||||||
|
|
||||||
# We can't rely on tar being in minimal installs, but we also can't
|
# We can't rely on tar being in minimal installs, but we also can't
|
||||||
# rely on dnf always working (it fails in emergency mode, not sure
|
# rely on dnf always working (it fails in emergency mode, not sure
|
||||||
# why), so try it, then check if we have tar
|
# why), so try it. if we don't get a return code, process may be
|
||||||
script_run "dnf -y install tar", 180;
|
# stuck waiting on network or something, so hit ctrl-c
|
||||||
|
send_key "ctrl-c" unless (script_run "dnf -y install tar", 180);
|
||||||
|
|
||||||
# if we don't have tar or a network connection, we'll try and at
|
# if we don't have tar or a network connection, we'll try and at
|
||||||
# least send out *some* kinda info via the serial line
|
# least send out *some* kinda info via the serial line
|
||||||
|
Loading…
Reference in New Issue
Block a user