From efb34cf819c52c56af57c2c48579fc73fcc78b87 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sat, 29 Jul 2023 22:29:47 -0600 Subject: [PATCH] Fix test --- tests/deploy/run-deploy-test.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/deploy/run-deploy-test.sh b/tests/deploy/run-deploy-test.sh index f2dee67c..70eb0e18 100755 --- a/tests/deploy/run-deploy-test.sh +++ b/tests/deploy/run-deploy-test.sh @@ -26,7 +26,19 @@ $TEST_TARGET_SO --stack test build-containers # Test deploy command execution $TEST_TARGET_SO --stack test deploy setup $CERC_REPO_BASE_DIR # Check that we now have the expected output directory -if []; then +if [ ! -d "$CERC_REPO_BASE_DIR/container-output-dir" ]; then + echo "deploy setup test: output directory not present" + echo "deploy setup test: FAILED" + exit 1 +fi +if [ ! -f "$CERC_REPO_BASE_DIR/container-output-dir/output-file" ]; then + echo "deploy setup test: output file not present" + echo "deploy setup test: FAILED" + exit 1 +fi +output_file_content=$(<$CERC_REPO_BASE_DIR/container-output-dir/output-file) +if [ ! "$output_file_content" == "output-data" ]; then + echo "deploy setup test: output file contents not correct" echo "deploy setup test: FAILED" exit 1 fi