summaryrefslogtreecommitdiffstats
path: root/tests/vm/netbsd
diff options
context:
space:
mode:
authorAlex Bennée2019-11-04 18:31:44 +0100
committerAlex Bennée2019-11-12 15:32:55 +0100
commit5b4b4865f44ed27d6aeea1d05e8314fce9cdc136 (patch)
treea054e55daab5d0465a817da283a620eb9895e22b /tests/vm/netbsd
parenttests: only run ipmi-bt-test if CONFIG_LINUX (diff)
downloadqemu-5b4b4865f44ed27d6aeea1d05e8314fce9cdc136.tar.gz
qemu-5b4b4865f44ed27d6aeea1d05e8314fce9cdc136.tar.xz
qemu-5b4b4865f44ed27d6aeea1d05e8314fce9cdc136.zip
tests/vm: support sites with sha512 checksums
The NetBSD project uses SHA512 for its checksums so lets support that in the download helper. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/vm/netbsd')
-rwxr-xr-xtests/vm/netbsd3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vm/netbsd b/tests/vm/netbsd
index c48c60853e..611e6cc5b5 100755
--- a/tests/vm/netbsd
+++ b/tests/vm/netbsd
@@ -23,6 +23,7 @@ class NetBSDVM(basevm.BaseVM):
arch = "x86_64"
link = "https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.1/images/NetBSD-8.1-amd64.iso"
+ csum = "718f275b7e0879599bdac95630c5e3f2184700032fdb6cdebf3bdd63687898c48ff3f08f57b89f4437a86cdd8ea07c01a39d432dbb37e1e4b008f4985f98da3f"
size = "20G"
pkgs = [
# tools
@@ -70,7 +71,7 @@ class NetBSDVM(basevm.BaseVM):
ipv6 = False
def build_image(self, img):
- cimg = self._download_with_cache(self.link)
+ cimg = self._download_with_cache(self.link, sha512sum=self.csum)
img_tmp = img + ".tmp"
iso = img + ".install.iso"