From bee243727c2629b68e4184e4ee7b46999d60603c Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Wed, 13 Sep 2023 09:34:08 +0100 Subject: [PATCH] test: Print error message if aws cli not available Currently, devtool test silently fails if aws cli is not installed, which results in CI artifacts not getting downloaded, which results in all tests being skipped. Since the error message from downloading artifacts is burried in other output, explicitly abort. Signed-off-by: Patrick Roy --- tools/devtool | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/devtool b/tools/devtool index 0312d740d52..04ea2961e68 100755 --- a/tools/devtool +++ b/tools/devtool @@ -506,6 +506,10 @@ cmd_distclean() { } ensure_ci_artifacts() { + if [ ! command -v aws >/dev/null ]; then + die "AWS CLI not installed, which is required for downloading artifacts for integration tests." + fi + # Fetch all the artifacts so they are local say "Fetching CI artifacts from S3" S3_URL=s3://spec.ccfc.min/firecracker-ci/v1.5/$(uname -m)