From 65a356a08f73cb42d750106ffa84fcc0c401826a Mon Sep 17 00:00:00 2001 From: Hannah Yan Date: Thu, 25 Jul 2024 10:13:04 +0100 Subject: [PATCH] Updated run-docker.sh to check VERIFICATION_IO path --- run-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-docker.sh b/run-docker.sh index 0b45638bda..b1fe44eb0c 100755 --- a/run-docker.sh +++ b/run-docker.sh @@ -281,6 +281,10 @@ if [ "$VERIFICATION_EN" = 1 ]; then recho "VERIFICATION_IO paths has not been set." recho "Please ensure the path to the input and expected output files has been set correctly to eneable verification." exit -1 + elif [ ! -d "$VERIFICATION_IO" ]; then + recho "${VERIFICATION_IO} is not a directory." + recho "Please ensure the VERIFICATION_IO path has been set to the directory containing the input and expected output files for verification." + exit -1 else DOCKER_EXEC+="-e VERIFICATION_EN=$VERIFICATION_EN " DOCKER_EXEC+="-e FINN_EXAMPLES_ROOT=$FINN_EXAMPLES_ROOT "