From 3b8227c29da6424c1e443ac71380e39be5dd41c9 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Wed, 3 Jun 2020 08:34:28 -0500 Subject: [PATCH] Make image a parameter to allow running with any image --- test/test_volume_data.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_volume_data.sh b/test/test_volume_data.sh index 1261ed0..2c87a63 100755 --- a/test/test_volume_data.sh +++ b/test/test_volume_data.sh @@ -33,8 +33,8 @@ trap "cleanup" INT TERM EXIT # VOLUME TESTS # Given... -IMAGE="pihole:v5.0-amd64" # The latest build test image (generic, non release/branch tag) -VOLUMES="$(mktemp -d)" # A fresh volume directory +IMAGE="${1:-pihole:v5.0-amd64}" # Default is latest build test image (generic, non release/branch tag) +VOLUMES="$(mktemp -d)" # A fresh volume directory VOL_PH="$VOLUMES/pihole" VOL_DM="$VOLUMES/dnsmasq.d" tty -s && TTY='-t' || TTY=''