[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 08/10] tests/acceptance/virtiofs_submounts.py: remove laun
From: |
Auger Eric |
Subject: |
Re: [PATCH v2 08/10] tests/acceptance/virtiofs_submounts.py: remove launch_vm() |
Date: |
Wed, 24 Mar 2021 10:24:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
Hi,
On 3/23/21 11:15 PM, Cleber Rosa wrote:
> The LinuxTest class' launch_and_wait() method now behaves the same way
> as this test's custom launch_vm(), so let's just use the upper layer
> (common) method.
>
> Signed-off-by: Cleber Rosa <crosa@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Eric
> ---
> tests/acceptance/virtiofs_submounts.py | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/tests/acceptance/virtiofs_submounts.py
> b/tests/acceptance/virtiofs_submounts.py
> index e019d3b896..d77ee35674 100644
> --- a/tests/acceptance/virtiofs_submounts.py
> +++ b/tests/acceptance/virtiofs_submounts.py
> @@ -134,9 +134,6 @@ def set_up_virtiofs(self):
> '-numa',
> 'node,memdev=mem')
>
> - def launch_vm(self):
> - self.launch_and_wait()
> -
> def set_up_nested_mounts(self):
> scratch_dir = os.path.join(self.shared_dir, 'scratch')
> try:
> @@ -225,7 +222,7 @@ def test_pre_virtiofsd_set_up(self):
> self.set_up_nested_mounts()
>
> self.set_up_virtiofs()
> - self.launch_vm()
> + self.launch_and_wait()
> self.mount_in_guest()
> self.check_in_guest()
>
> @@ -235,14 +232,14 @@ def test_pre_launch_set_up(self):
>
> self.set_up_nested_mounts()
>
> - self.launch_vm()
> + self.launch_and_wait()
> self.mount_in_guest()
> self.check_in_guest()
>
> def test_post_launch_set_up(self):
> self.set_up_shared_dir()
> self.set_up_virtiofs()
> - self.launch_vm()
> + self.launch_and_wait()
>
> self.set_up_nested_mounts()
>
> @@ -252,7 +249,7 @@ def test_post_launch_set_up(self):
> def test_post_mount_set_up(self):
> self.set_up_shared_dir()
> self.set_up_virtiofs()
> - self.launch_vm()
> + self.launch_and_wait()
> self.mount_in_guest()
>
> self.set_up_nested_mounts()
> @@ -265,7 +262,7 @@ def test_two_runs(self):
> self.set_up_nested_mounts()
>
> self.set_up_virtiofs()
> - self.launch_vm()
> + self.launch_and_wait()
> self.mount_in_guest()
> self.check_in_guest()
>
>
- Re: [PATCH v2 07/10] Acceptance Tests: set up SSH connection by default after boot for LinuxTest, (continued)