From c69eb00f9b4808275306f7a027483f9e81beb278 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Fri, 25 May 2018 14:05:05 +0100 Subject: [PATCH] tests: Make all globals readonly Some of the globals were set as read-only variables whilst others weren't. However, they can all be read-only. Signed-off-by: James O. D. Hunt --- tests/image_creation.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/image_creation.bats b/tests/image_creation.bats index 4d08a8b76f..9c3405dec4 100644 --- a/tests/image_creation.bats +++ b/tests/image_creation.bats @@ -4,11 +4,11 @@ # # SPDX-License-Identifier: Apache-2.0 -rootfs_sh="$BATS_TEST_DIRNAME/../rootfs-builder/rootfs.sh" -image_builder_sh="$BATS_TEST_DIRNAME/../image-builder/image_builder.sh" -initrd_builder_sh="$BATS_TEST_DIRNAME/../initrd-builder/initrd_builder.sh" +readonly rootfs_sh="$BATS_TEST_DIRNAME/../rootfs-builder/rootfs.sh" +readonly image_builder_sh="$BATS_TEST_DIRNAME/../image-builder/image_builder.sh" +readonly initrd_builder_sh="$BATS_TEST_DIRNAME/../initrd-builder/initrd_builder.sh" readonly tmp_dir=$(mktemp -t -d osbuilder-test.XXXXXXX) -tmp_rootfs="${tmp_dir}/rootfs-osbuilder" +readonly tmp_rootfs="${tmp_dir}/rootfs-osbuilder" setup() {