automation: Add qemu to debian:stretch container for smoke test
authorAnthony PERARD <anthony.perard@gmail.com>
Thu, 30 Sep 2021 16:17:20 +0000 (17:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Oct 2021 08:52:14 +0000 (09:52 +0100)
We can add qemu into the container so that there's no need to install
it everytime we run a test.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/build/debian/stretch.dockerfile
automation/scripts/qemu-smoke-x86-64.sh

index e2ee14e2017c0b99b2585b620b06a4b9b78219a2..da6aa874dd70d6673b9c2f05c6713d74d8384acf 100644 (file)
@@ -47,6 +47,8 @@ RUN apt-get update && \
         nasm \
         gnupg \
         apt-transport-https \
+        # for test phase, qemu-smoke-* jobs
+        qemu-system-x86 \
         && \
         apt-get autoremove -y && \
         apt-get clean && \
index 29cb44b757a7dc3c85962c1070cee9cbbb391008..188ff8e3d658139c359d4344831a8a1016ad4d5f 100755 (executable)
@@ -5,11 +5,6 @@ set -ex
 # variant should be either pv or pvh
 variant=$1
 
-# Install QEMU
-export DEBIAN_FRONTENT=noninteractive
-apt-get -qy update
-apt-get -qy install qemu-system-x86
-
 # Clone and build XTF
 git clone https://xenbits.xen.org/git-http/xtf.git
 cd xtf && make -j$(nproc) && cd -