From e787bb0da5ffc120e2d9888189950b0c612c257e Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 1 Mar 2020 17:23:03 -0500 Subject: [PATCH] tests: Define KATA_DEV_MODE Define KATA_DEV_MODE at the top of the file, so code doesn't need to conditionally compare against it Signed-off-by: Cole Robinson --- tests/test_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index c718df123..1857e1792 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -29,6 +29,7 @@ readonly RUNTIME=${RUNTIME:-kata-runtime} readonly MACHINE_TYPE=`uname -m` readonly CI=${CI:-} readonly KATA_HYPERVISOR="${KATA_HYPERVISOR:-}" +readonly KATA_DEV_MODE="${KATA_DEV_MODE:-}" readonly ci_results_dir="/var/osbuilder/tests" readonly dracut_dir=${project_dir}/dracut @@ -276,7 +277,7 @@ setup() [ ! -d "${tests_repo_dir}" ] && git clone "https://${tests_repo}" "${tests_repo_dir}" - if [ -z "${KATA_DEV_MODE:-}" ]; then + if [ -z "${KATA_DEV_MODE}" ]; then mkdir -p /etc/kata-containers/ sudo cp -a /usr/share/defaults/kata-containers/configuration.toml /etc/kata-containers/configuration.toml else