From: Cleber Rosa Date: Mon, 12 Apr 2021 04:46:44 +0000 (-0400) Subject: tests/acceptance/virtiofs_submounts.py: fix setup of SSH pubkey X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d214740c994f51370112ceda33a9d5546ff21c84;p=qemu.git tests/acceptance/virtiofs_submounts.py: fix setup of SSH pubkey The public key argument should be a path to a file, and not the public key data. Reported-by: Wainer dos Santos Moschetta Signed-off-by: Cleber Rosa Message-Id: <20210412044644.55083-12-crosa@redhat.com> Reviewed-by: Willian Rampazzo Reviewed-by: Wainer dos Santos Moschetta Signed-off-by: John Snow --- 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 @@ class VirtiofsSubmountsTest(LinuxTest): 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)