Switch run-test to accept --prebuilt-image parameters.
This avoid problems when running the tests locally. Technically it
will run the Raspberry Pi test twice on Gitlab, once with the prebuilt
image, and once with a test image, but the two configurations are not
identical, so I reckon that's alright.
Changelog: None
Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
echo"FAILED! This test needs a pre-converted Raspbian image. See the convert_raspbian job in the .gitlab-ci.yml file for how to generate, and then put the *uncompressed* image in the deploy folder"
test_result=1
fi
# MEN-2809: Disabled due broken download link
#convert_and_test "linaro-alip" \
# "release-1" \
# "${TINKER_IMAGE_URL}" \
# "${TINKER_IMAGE}.img" \
# "${TINKER_IMAGE}.zip" || test_result=$?
convert_and_test "beaglebone"\
"release-1"\
"${BBB_DEBIAN_IMAGE_URL}"\
"${BBB_DEBIAN_IMAGE}"\
"${BBB_DEBIAN_IMAGE}.xz"||test_result=$?
convert_and_test "ubuntu"\
"release-1"\
"${UBUNTU_SERVER_RPI_IMAGE_URL}"\
"${UBUNTU_SERVER_RPI_IMAGE}"\
"${UBUNTU_SERVER_RPI_IMAGE}.xz"\
"configs/raspberrypi3_config"||test_result=$?
exit$test_result
case"$1" in
--prebuilt-image)
if[ -z "$3"];then
echo"Both DEVICE_TYPE and IMAGE_NAME must be specified"