From 5381a27c978ee65b26f88c1e37821a10c32e0221 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Mon, 4 Aug 2014 13:29:25 +0300 Subject: test-kvm: ensure latest mustang image Currenlty the the scripts will only pull latest version of built image, if all linux-kvm variants (mustang, vexpress, arndale) work. However, if one of the three fails, old kernel and module will be pulled. Fix this by explicitly checking the latest time mustang has built succesfully. Change-Id: Ibb695f8324618b85ae400561a83a3e435bde1d26 Signed-off-by: Riku Voipio --- common/scripts/kvm/test-kvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/scripts/kvm/test-kvm.sh b/common/scripts/kvm/test-kvm.sh index 872bf51..6ee32e5 100755 --- a/common/scripts/kvm/test-kvm.sh +++ b/common/scripts/kvm/test-kvm.sh @@ -30,8 +30,7 @@ else DOWNLOAD_FILE="wget --progress=dot -e dotbytes=2M --no-check-certificate" fi -BUILD_NUMBER_GUEST=`$(echo $EXTRACT_BUILD_NUMBER) https://ci.linaro.org/jenkins/job/kvm-guest-image/lastSuccessfulBuild/buildNumber` -BUILD_NUMBER_HOST=`$(echo $EXTRACT_BUILD_NUMBER) https://ci.linaro.org/jenkins/job/linux-kvm/lastSuccessfulBuild/buildNumber` +BUILD_NUMBER_GUEST=`$(echo $EXTRACT_BUILD_NUMBER) https://ci.linaro.org/job/kvm-guest-image/lastSuccessfulBuild/buildNumber` case ${ARCH} in armv7l) @@ -43,6 +42,7 @@ case ${ARCH} in modprobe nbd max_part=16 ;; aarch64) + BUILD_NUMBER_HOST=`$(echo $EXTRACT_BUILD_NUMBER) https://ci.linaro.org/job/linux-kvm/hwpack=mustang,label=kernel_cloud/lastSuccessfulBuild/buildNumber` $DOWNLOAD_FILE http://snapshots.linaro.org/ubuntu/images/kvm-guest/$BUILD_NUMBER_GUEST/kvm-arm64.qcow2.gz $DOWNLOAD_FILE http://snapshots.linaro.org/ubuntu/images/kvm/$BUILD_NUMBER_HOST/Image-mustang $DOWNLOAD_FILE http://snapshots.linaro.org/ubuntu/images/kvm/$BUILD_NUMBER_HOST/nbd.ko.gz -- cgit v1.2.3