qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: peter.maydell@linaro.org
Cc: "Fam Zheng" <fam@euphon.net>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	qemu-devel@nongnu.org
Subject: [PULL 05/11] tests/vm: fix basevm config
Date: Wed, 25 Mar 2020 15:15:37 +0000	[thread overview]
Message-ID: <20200325151543.32478-6-alex.bennee@linaro.org> (raw)
In-Reply-To: <20200325151543.32478-1-alex.bennee@linaro.org>

When the patch was merged it was part of a longer series which had
already merged the config changes. Semu-revert the config related
changes for now so things will build.

Fixes: b081986c85fd2
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200323161514.23952-6-alex.bennee@linaro.org>

diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index cffe7c4600e..756ccf7acae 100644
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -358,23 +358,23 @@ class BaseVM(object):
                           "local-hostname: {}-guest\n".format(name)])
         mdata.close()
         udata = open(os.path.join(cidir, "user-data"), "w")
-        print("guest user:pw {}:{}".format(self._config['guest_user'],
-                                           self._config['guest_pass']))
+        print("guest user:pw {}:{}".format(self.GUEST_USER,
+                                           self.GUEST_PASS))
         udata.writelines(["#cloud-config\n",
                           "chpasswd:\n",
                           "  list: |\n",
-                          "    root:%s\n" % self._config['root_pass'],
-                          "    %s:%s\n" % (self._config['guest_user'],
-                                           self._config['guest_pass']),
+                          "    root:%s\n" % self.ROOT_PASS,
+                          "    %s:%s\n" % (self.GUEST_USER,
+                                           self.GUEST_PASS),
                           "  expire: False\n",
                           "users:\n",
-                          "  - name: %s\n" % self._config['guest_user'],
+                          "  - name: %s\n" % self.GUEST_USER,
                           "    sudo: ALL=(ALL) NOPASSWD:ALL\n",
                           "    ssh-authorized-keys:\n",
-                          "    - %s\n" % self._config['ssh_pub_key'],
+                          "    - %s\n" % SSH_PUB_KEY,
                           "  - name: root\n",
                           "    ssh-authorized-keys:\n",
-                          "    - %s\n" % self._config['ssh_pub_key'],
+                          "    - %s\n" % SSH_PUB_KEY,
                           "locale: en_US.UTF-8\n"])
         proxy = os.environ.get("http_proxy")
         if not proxy is None:
-- 
2.20.1



  parent reply	other threads:[~2020-03-25 15:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-25 15:15 [PULL for 5.0-rc1 00/11] testing updates (+ one mttcg change) Alex Bennée
2020-03-25 15:15 ` [PULL 01/11] tests/vm: write raw console log Alex Bennée
2020-03-25 15:15 ` [PULL 02/11] tests/vm: move vga setup Alex Bennée
2020-03-25 15:15 ` [PULL 03/11] tests/vm: update FreeBSD to 12.1 Alex Bennée
2020-03-25 15:15 ` [PULL 04/11] tests/vm: update NetBSD to 9.0 Alex Bennée
2020-03-25 15:15 ` Alex Bennée [this message]
2020-03-25 15:15 ` [PULL 06/11] configure: disable MTTCG for MIPS guests Alex Bennée
2020-03-25 15:15 ` [PULL 07/11] tests/docker: Keep package list sorted Alex Bennée
2020-03-25 15:15 ` [PULL 08/11] tests/docker: Install gcrypt devel package in Debian image Alex Bennée
2020-03-25 15:15 ` [PULL 09/11] tests/docker: Use Python3 PyYAML in the Fedora image Alex Bennée
2020-03-25 15:15 ` [PULL 10/11] tests/docker: Add libepoxy and libudev packages to " Alex Bennée
2020-03-25 15:15 ` [PULL 11/11] .travis.yml: Add a KVM-only s390x job Alex Bennée
2020-03-26 11:46 ` [PULL for 5.0-rc1 00/11] testing updates (+ one mttcg change) Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200325151543.32478-6-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=fam@euphon.net \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).