@@ -14,7 +14,7 @@ function busybox-hvm-test() {
if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
then
echo $PREPEND busybox hvm test only valid on x86
- exit 0
+ return 0
fi
TMPDIR=`mktemp -d`
@@ -13,7 +13,7 @@ function busybox-hvm-migrate-test() {
if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
then
echo $PREPEND busybox hvm test only valid on x86
- exit 0
+ return 0
fi
busybox-hvm-test
@@ -7,6 +7,11 @@ function cirros-minios-stubdom-hvm-cleanup() {
}
function cirros-minios-stubdom-hvm-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,11 @@ function cirros-minios-stubdom-pvhvm-cleanup() {
}
function cirros-minios-stubdom-pvhvm-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,11 @@ function cirros-pvgrub2-pv-cleanup() {
}
function cirros-pvgrub2-pv-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,12 @@ function cirros-pygrub-pv-cleanup() {
}
function cirros-pygrub-pv-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ echo $PREPEND cirros tests disabled on ARM for now
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,11 @@ function cirros-qemu-hvm-cleanup() {
}
function cirros-qemu-hvm-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,11 @@ function cirros-qemu-pvhvm-cleanup() {
}
function cirros-qemu-pvhvm-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_DISK_FILE $testdir
@@ -7,6 +7,12 @@ function cirros-separate-kernel-pv-cleanup() {
}
function cirros-separate-kernel-pv-test() {
+ if [[ $RAISIN_ARCH != "x86_64" && $RAISIN_ARCH != "x86_32" ]]
+ then
+ echo $PREPEND cirros tests disabled on ARM for now
+ return 0
+ fi
+
download_cirros_components
testdir=`mktemp -d`
cp $CIRROS_DOWNLOADS/$CIRROS_KERNEL_FILE $testdir
Ignore all cirros tests on ARM for now. Print a warning for PV tests, which could work on ARM one day (HVM tests won't work any time soon, given that there is no HVM builder type on ARM). Do not exit 0 when we detect ARM in a test: it causes the whole raise to exit. Return 0 instead. Signed-off-by: Stefano Stabellini <sstabellini@kernel.org> --- tests/busybox-hvm | 2 +- tests/busybox-hvm-migrate | 2 +- tests/cirros-minios-stubdom-hvm | 5 +++++ tests/cirros-minios-stubdom-pvhvm | 5 +++++ tests/cirros-pvgrub2-pv | 5 +++++ tests/cirros-pygrub-pv | 6 ++++++ tests/cirros-qemu-hvm | 5 +++++ tests/cirros-qemu-pvhvm | 5 +++++ tests/cirros-separate-kernel-pv | 6 ++++++ 9 files changed, 39 insertions(+), 2 deletions(-)