[PATCH 16/17] tests/avocado/replay_linux: Fix cdrom device setup

Nicholas Piggin posted 17 patches 3 days, 12 hours ago
[PATCH 16/17] tests/avocado/replay_linux: Fix cdrom device setup
Posted by Nicholas Piggin 3 days, 12 hours ago
The cdrom device was not being added to the command line.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 tests/avocado/replay_linux.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/avocado/replay_linux.py b/tests/avocado/replay_linux.py
index 38b6f8e6652..6c08ddaaff1 100644
--- a/tests/avocado/replay_linux.py
+++ b/tests/avocado/replay_linux.py
@@ -57,6 +57,8 @@ def vm_add_disk(self, vm, path, id, device):
 
     def vm_add_cdrom(self, vm, path, id, device):
         vm.add_args('-drive', 'file=%s,id=disk%s,if=none,media=cdrom' % (path, id))
+        vm.add_args('-device',
+            '%s,drive=disk%s' % (device, id))
 
     def launch_and_wait(self, record, args, shift):
         self.require_netdev('user')
-- 
2.45.2