From a7fcb47aa61b7be6732193c82b697719bf11b813 Mon Sep 17 00:00:00 2001 From: Nan Wang Date: Wed, 17 May 2023 17:46:50 -0700 Subject: [PATCH] Expand $TEST_UNDECLARED_OUTPUTS_DIR when running test from bazel (#553) Signed-off-by: Nan Wang --- bptestrunner/bluepill_batch_test_runner.template.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bptestrunner/bluepill_batch_test_runner.template.sh b/bptestrunner/bluepill_batch_test_runner.template.sh index 3bdc0d7f..012b9f38 100644 --- a/bptestrunner/bluepill_batch_test_runner.template.sh +++ b/bptestrunner/bluepill_batch_test_runner.template.sh @@ -64,8 +64,9 @@ if [ -f "$BP_TEST_ESTIMATE_JSON" ]; then TIME_ESTIMATE_ARG="--test-time-estimates-json $(basename "$BP_TEST_ESTIMATE_JSON")" fi -# Copy rule-generated test plan file to working folder -cp "$BP_TEST_PLAN" $BP_WORKING_FOLDER +# Expand $TEST_UNDECLARED_OUTPUTS_DIR in rule-generated test plan file +# And copy it to working folder +sed 's/$TEST_UNDECLARED_OUTPUTS_DIR/'"${TEST_UNDECLARED_OUTPUTS_DIR//\//\\/}"'/g' $BP_TEST_PLAN > $BP_WORKING_FOLDER/$BP_TEST_PLAN BP_TEST_PLAN_ARG="$(basename "$BP_TEST_PLAN")" # Copy bluepill and bp executables to working folder