From df353de8d04d45702e177470bb05c65828921182 Mon Sep 17 00:00:00 2001 From: Damon Bayer Date: Mon, 10 Feb 2025 18:06:36 -0600 Subject: [PATCH] Update test_end_to_end.sh (#339) --- pipelines/tests/create_more_model_test_data.R | 4 +++- pipelines/tests/test_end_to_end.sh | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pipelines/tests/create_more_model_test_data.R b/pipelines/tests/create_more_model_test_data.R index f417aaf8..ff0e90a1 100644 --- a/pipelines/tests/create_more_model_test_data.R +++ b/pipelines/tests/create_more_model_test_data.R @@ -3,7 +3,9 @@ # remaining parts of the pipeline on the fake output. # In the future, the pipeline script should be updated, and this script should # be deleted. -library(tidyverse) +library(purrr) +library(readr) +library(dplyr) library(fs) library(glue) try(source("hewr/R/process_state_forecast.R")) diff --git a/pipelines/tests/test_end_to_end.sh b/pipelines/tests/test_end_to_end.sh index 4c0c4c53..62e3f583 100755 --- a/pipelines/tests/test_end_to_end.sh +++ b/pipelines/tests/test_end_to_end.sh @@ -49,6 +49,13 @@ echo "TEST-MODE: pipeline runs complete for all location/disease pairs." echo "TEST-MODE: Extending tests for H and HE models..." Rscript pipelines/tests/create_more_model_test_data.R +if [ $? -ne 0 ]; then + echo "TEST-MODE FAIL: Creating more model test data failed" + exit 1 +else + echo "TEST-MODE: Finished creating more model test data" +fi + echo "TEST-MODE: Running batch postprocess..." python pipelines/postprocess_forecast_batches.py \