summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCleber Rosa2019-06-13 15:07:18 +0200
committerAlex Bennée2019-07-04 20:22:58 +0200
commit95c44c250dfc31da2df315fbe16bd1ea767aba66 (patch)
tree782dd8b1fe1dc2fc511af42bef9cfead362640ca
parenttests/vm: pin ubuntu.i386 image (diff)
downloadqemu-95c44c250dfc31da2df315fbe16bd1ea767aba66.tar.gz
qemu-95c44c250dfc31da2df315fbe16bd1ea767aba66.tar.xz
qemu-95c44c250dfc31da2df315fbe16bd1ea767aba66.zip
tests/vm: add source repos on ubuntu.i386
Possibly because of different behavior on the newly update cloud-image, trying to run 'apt-get build-dep' results in: E: You must put some 'source' URIs in your sources.list This enables all source repos (even though some are not needed) for simplicity sake. Signed-off-by: Cleber Rosa <crosa@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20190613130718.3763-5-crosa@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
-rwxr-xr-xtests/vm/ubuntu.i3861
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386
index 7017e6d388..3ea459ee20 100755
--- a/tests/vm/ubuntu.i386
+++ b/tests/vm/ubuntu.i386
@@ -77,6 +77,7 @@ class UbuntuX86VM(basevm.BaseVM):
time.sleep(5)
self.wait_ssh()
# The previous update sometimes doesn't survive a reboot, so do it again
+ self.ssh_root_check("sed -ie s/^#\ deb-src/deb-src/g /etc/apt/sources.list")
self.ssh_root_check("apt-get update")
self.ssh_root_check("apt-get build-dep -y qemu")
self.ssh_root_check("apt-get install -y libfdt-dev flex bison")