Sigh, fix a syntax error in previous commit

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-12-12 11:57:53 -08:00
parent 0f5281f389
commit 95b227b97a
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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";