On Thu, Mar 25, 2021 at 04:45:51PM -0300, Wainer dos Santos Moschetta wrote: > Hi, > > On 3/23/21 7:15 PM, Cleber Rosa wrote: > > This introduces a base class for tests that need to interact with a > > Linux guest. It generalizes the "boot_linux.py" code, already been > > used by the "virtiofs_submounts.py" and also SSH related code being > > used by that and "linux_ssh_mips_malta.py". > > I ran the linux_ssh_mips_malta.py tests, they all passed: > > (11/34) tests/acceptance/linux_ssh_mips_malta.py:LinuxSSH.test_mips_malta32eb_kernel3_2_0: > PASS (64.41 s) > (12/34) tests/acceptance/linux_ssh_mips_malta.py:LinuxSSH.test_mips_malta32el_kernel3_2_0: > PASS (63.43 s) > (13/34) tests/acceptance/linux_ssh_mips_malta.py:LinuxSSH.test_mips_malta64eb_kernel3_2_0: > PASS (63.76 s) > (14/34) tests/acceptance/linux_ssh_mips_malta.py:LinuxSSH.test_mips_malta64el_kernel3_2_0: > PASS (62.52 s) > > Then I tried the virtiofs_submounts.py tests, it finishes with error. > Something like that fixes it: > > diff --git a/tests/acceptance/virtiofs_submounts.py > b/tests/acceptance/virtiofs_submounts.py > index d77ee35674..21ad7d792e 100644 > --- a/tests/acceptance/virtiofs_submounts.py > +++ b/tests/acceptance/virtiofs_submounts.py > @@ -195,7 +195,7 @@ def setUp(self): > >          self.run(('ssh-keygen', '-N', '', '-t', 'ed25519', '-f', > self.ssh_key)) > > -        pubkey = open(self.ssh_key + '.pub').read() > +        pubkey = self.ssh_key + '.pub' > >          super(VirtiofsSubmountsTest, self).setUp(pubkey) > Hi Wainer, Yes, thank you so much for catching that and proposing a fix. I'm adding to the v3 of this series. Thanks again! - Cleber.