tools/harness: adding name parameter to qemu machine
@@ -123,8 +123,8 @@ class QEMUMachineX64Operations(QEMUMachineBaseOperations):
# create 1, 2 and 4 core x86_64 qemu machines
-for n in [1, 2, 4]:
class TmpMachine(QEMUMachineBase):
+ name = 'qemu_x86_64'
def __init__(self, options, _class=None, **kwargs):
super(_class, self).__init__(options, QEMUMachineX64Operations(self), **kwargs)
@@ -136,6 +136,7 @@ for n in [1, 2, 4]:
def get_test_timeout(self):
return self.get_ncores() * 120
+for n in [1, 2, 4]:
MachineFactory.addMachine('qemu_x86_64_c%d' % n, TmpMachine,
ncores=n,
bootarch='x86_64',
