summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/virtiofs_submounts.py
diff options
context:
space:
mode:
authorCleber Rosa2021-04-12 06:46:44 +0200
committerJohn Snow2021-06-01 22:21:21 +0200
commitd214740c994f51370112ceda33a9d5546ff21c84 (patch)
treee328fbabd3b7db20e2c6f0940cd5ed62f059afbf /tests/acceptance/virtiofs_submounts.py
parentAcceptance Tests: introduce CPU hotplug test (diff)
downloadqemu-d214740c994f51370112ceda33a9d5546ff21c84.tar.gz
qemu-d214740c994f51370112ceda33a9d5546ff21c84.tar.xz
qemu-d214740c994f51370112ceda33a9d5546ff21c84.zip
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 <wainersm@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20210412044644.55083-12-crosa@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'tests/acceptance/virtiofs_submounts.py')
-rw-r--r--tests/acceptance/virtiofs_submounts.py2
1 files changed, 1 insertions, 1 deletions
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)