Skip to content

Commit

Permalink
installer: start virtiofs after reboot guest
Browse files Browse the repository at this point in the history
For some guests, need to restart os after updating drivers.
And after os rebooted, need to start virtiofs service.

Signed-off-by: Xiaoling Gao <xiagao@redhat.com>
  • Loading branch information
xiagao committed Dec 29, 2022
1 parent 0352bc1 commit 8bc03c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qemu/tests/win_virtio_driver_update_by_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,13 @@ def change_virtio_media(cdrom_virtio):
installer_pkg_check_cmd,
copy_files_params=params)

error_context.context("Run viofs service after upgrade...")
win_driver_installer_test.run_viofs_service(test, params, session)

# for some guests, need to reboot guest after drivers are updated
if params.get("need_reboot", "no") == "yes":
session = vm.reboot(session)

error_context.context("Run viofs service after upgrade...")
win_driver_installer_test.run_viofs_service(test, params, session)

win_driver_installer_test.check_gagent_version(session, test,
gagent_pkg_info_cmd,
expected_gagent_version)
Expand Down

0 comments on commit 8bc03c0

Please sign in to comment.