summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2014-08-04 13:29:25 +0300
committerRiku Voipio <riku.voipio@linaro.org>2014-08-04 13:29:25 +0300
commit5381a27c978ee65b26f88c1e37821a10c32e0221 (patch)
treeb4cf6f75997876fb70e411e7f4680b771ba5eef4
parenta381f245a3a84e1ca8f5b264456b03542fafeb87 (diff)
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 <riku.voipio@linaro.org>
-rwxr-xr-xcommon/scripts/kvm/test-kvm.sh4
1 files 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