Skip to content

Commit

Permalink
Merge pull request avocado-framework#2983 from YongxueHong/bug-1938643
Browse files Browse the repository at this point in the history
virt_vm: Enable the logging of session for VM
  • Loading branch information
luckyh authored Jul 8, 2021
2 parents ff1710f + 0032ed2 commit 4dc8297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virttest/virt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,12 @@ def login(self, nic_index=0, timeout=LOGIN_TIMEOUT,
log_filename = ("session-%s-%s-%s.log" %
(self.name, time.strftime("%m-%d-%H-%M-%S"),
utils_misc.generate_random_string(4)))
log_filename = utils_misc.get_log_filename(log_filename)
log_function = utils_misc.log_line
session = remote.remote_login(client, address, port, username,
password, prompt, linesep,
log_filename, timeout,
interface=neigh_attach_if)
log_filename, log_function,
timeout, interface=neigh_attach_if)
session.set_status_test_command(self.params.get("status_test_command",
""))
self.remote_sessions.append(session)
Expand Down

0 comments on commit 4dc8297

Please sign in to comment.