qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/acceptance: Allow overwrite smp and memory


From: Thomas Huth
Subject: Re: [PATCH] tests/acceptance: Allow overwrite smp and memory
Date: Wed, 20 Apr 2022 12:37:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 10/08/2021 19.30, Ahmed Abouzied wrote:
ping

Just pinging about this little patch. Patchew link here: https://patchew.org/QEMU/20210802222257.50946-1-email@aabouzied.com/

Sorry, seems like this completely fell through the cracks ... since nobody else picked this up yet, I've now put it into my current pull request, so that the issue should finally get resolved now.

 Thomas

On Tue, Aug 3, 2021 at 12:24 AM Ahmed Abouzied <email@aabouzied.com <mailto:email@aabouzied.com>> wrote:

    Removes the hard-coded values in setUp(). Class inheriting from
    avocado_qemu.LinuxTest can overwrite the default smp and memory instead.

    Resolves: https://gitlab.com/qemu-project/qemu/-/issues/453
    <https://gitlab.com/qemu-project/qemu/-/issues/453>
    Signed-off-by: Ahmed Abouzied <email@aabouzied.com
    <mailto:email@aabouzied.com>>
    ---
      tests/acceptance/avocado_qemu/__init__.py | 6 ++++--
      1 file changed, 4 insertions(+), 2 deletions(-)

    diff --git a/tests/acceptance/avocado_qemu/__init__.py
    b/tests/acceptance/avocado_qemu/__init__.py
    index 2c4fef3e14..2639b89c84 100644
    --- a/tests/acceptance/avocado_qemu/__init__.py
    +++ b/tests/acceptance/avocado_qemu/__init__.py
    @@ -441,6 +441,8 @@ class LinuxTest(Test, LinuxSSHMixIn):
          distro = None
          username = 'root'
          password = 'password'
    +    smp = '2'
    +    memory = '1024'

          def _set_distro(self):
              distro_name = self.params.get(
    @@ -471,8 +473,8 @@ def _set_distro(self):
          def setUp(self, ssh_pubkey=None, network_device_type='virtio-net'):
              super(LinuxTest, self).setUp()
              self._set_distro()
    -        self.vm.add_args('-smp', '2')
    -        self.vm.add_args('-m', '1024')
    +        self.vm.add_args('-smp', self.smp)
    +        self.vm.add_args('-m', self.memory)
              # The following network device allows for SSH connections
              self.vm.add_args('-netdev',
    'user,id=vnet,hostfwd=:127.0.0.1:0-:22',
                               '-device', '%s,netdev=vnet' %
    network_device_type)
-- 2.25.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]