All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wainer dos Santos Moschetta <wainersm@redhat.com>
To: qemu-devel@nongnu.org
Cc: drjones@redhat.com, ehabkost@redhat.com, philmd@redhat.com,
	thuth@redhat.com, crosa@redhat.com, alex.bennee@linaro.org
Subject: [PATCH v4 8/8] travis.yml: Enable acceptance KVM tests
Date: Wed,  5 Feb 2020 15:32:50 -0500	[thread overview]
Message-ID: <20200205203250.30526-9-wainersm@redhat.com> (raw)
In-Reply-To: <20200205203250.30526-1-wainersm@redhat.com>

Some acceptance tests require KVM or they are skipped. Travis
enables nested virtualization by default with Ubuntu
18.04 (Bionic) on x86_64. So in order to run the kvm tests, this
changed the acceptance builder to run in a Bionic VM. Also
it was needed to ensure the current user has rw permission
to /dev/kvm.

python3.5-venv is not packaged on Bionic. So it was replaced
with python3.6-venv.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
---
 .travis.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 1ae645e9fc..76fc828887 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,7 @@
 # Additional builds with specific requirements for a full VM need to
 # be added as additional matrix: entries later on
 dist: xenial
+sudo: true
 language: c
 compiler:
   - gcc
@@ -83,6 +84,9 @@ git:
 
 before_script:
   - if command -v ccache ; then ccache --zero-stats ; fi
+  - if [[ -c /dev/kvm ]] && ! [[ -r /dev/kvm && -w /dev/kvm ]]; then
+        sudo chmod o+rw /dev/kvm ;
+    fi
   - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
   - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
 script:
@@ -272,12 +276,13 @@ matrix:
         - TEST_CMD="make check-acceptance"
       after_script:
         - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat
+      dist: bionic
       addons:
         apt:
           packages:
             - python3-pil
             - python3-pip
-            - python3.5-venv
+            - python3.6-venv
             - tesseract-ocr
             - tesseract-ocr-eng
 
-- 
2.24.1



  parent reply	other threads:[~2020-02-05 20:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05 20:32 [PATCH v4 0/8] Acceptance tests: boot Linux with KVM test Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 1/8] tests/acceptance: avocado_qemu: Introduce the 'accel' test parameter Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 2/8] tests/acceptance: boot_linux_console: Add boot Linux/x86 with KVM Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 3/8] tests/acceptance: boot_linux_console: Add boot Linux/aarch64 " Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 4/8] python/qemu: accel: Fix kvm_available() on ppc64le Wainer dos Santos Moschetta
2020-02-06 15:43   ` Philippe Mathieu-Daudé
2020-02-05 20:32 ` [PATCH v4 5/8] test/acceptance: boot_linux_console: Add boot Linux/ppc64le with KVM Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 6/8] tests/acceptance: boot_linux_console: Add boot Linux/s390x " Wainer dos Santos Moschetta
2020-02-05 20:32 ` [PATCH v4 7/8] tests/acceptance: avocado_qemu: Refactor the handler of 'machine' parameter Wainer dos Santos Moschetta
2020-02-06 15:41   ` Philippe Mathieu-Daudé
2020-02-05 20:32 ` Wainer dos Santos Moschetta [this message]
2020-02-10 14:53 ` [PATCH v4 0/8] Acceptance tests: boot Linux with KVM test Philippe Mathieu-Daudé

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=20200205203250.30526-9-wainersm@redhat.com \
    --to=wainersm@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=drjones@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.