Skip to content

Commit

Permalink
Merge pull request autotest#5966 from Yingshun/save_ping
Browse files Browse the repository at this point in the history
save_base: Update to log output of ping command
  • Loading branch information
chloerh authored Oct 28, 2024
2 parents 9992aff + 17a2502 commit d2af397
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/save/save_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def pre_save_setup(vm, serial=False):
ping_cmd = 'ping 127.0.0.1 >/tmp/ping_out 2>&1'
# This session shouldn't be closed or it will kill ping
session.sendline(ping_cmd + '&')
pid_ping = session.cmd_output('pidof ping').strip().split()[-1]
ping_output = session.cmd_output('pidof ping')
LOG.debug(f'ping cmd output: {ping_output}')
pid_ping = ping_output.strip().split()[-1]
LOG.debug(f'Pid of ping: {pid_ping}')

return pid_ping, upsince
Expand Down

0 comments on commit d2af397

Please sign in to comment.