From ddea8e2169f0e8d10723dff4acca65b025e106e7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Jul 06 2020 23:38:12 +0000 Subject: 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 --- diff --git a/lib/installedtest.pm b/lib/installedtest.pm index d44eb26..dbaa97f 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -56,8 +56,9 @@ sub post_fail_hook { # 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 - # why), so try it, then check if we have tar - script_run "dnf -y install tar", 180; + # why), so try it. if we don't get a return code, process may be + # 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 # least send out *some* kinda info via the serial line