diff --git a/lib/anacondatest.pm b/lib/anacondatest.pm index 1e2b2ae6..ed810836 100644 --- a/lib/anacondatest.pm +++ b/lib/anacondatest.pm @@ -27,7 +27,7 @@ sub post_fail_hook { $self->root_console(); # 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 - my $hostip = $testapi::host_ip(); + my $hostip = testapi::host_ip(); if (script_run "ping -c 2 ${hostip}") { script_run 'printf "\n** X.LOG **\n" > /dev/ttyS0'; script_run "cat /tmp/X.log > /dev/ttyS0"; diff --git a/lib/installedtest.pm b/lib/installedtest.pm index c7cf862c..13791e22 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -40,7 +40,7 @@ sub post_fail_hook { # 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 - my $hostip = $testapi::host_ip(); + my $hostip = testapi::host_ip(); if (script_run "rpm -q tar" || script_run "ping -c 2 ${hostip}") { script_run 'printf "\n** IP ADDR **\n" > /dev/ttyS0'; script_run "ip addr > /dev/ttyS0 2>&1";