Skip to content

Commit a7fcb47

Browse files
committed
Expand $TEST_UNDECLARED_OUTPUTS_DIR when running test from bazel (#553)
Signed-off-by: Nan Wang <nanwang1101@yahoo.com>
1 parent 304ddfb commit a7fcb47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bptestrunner/bluepill_batch_test_runner.template.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ if [ -f "$BP_TEST_ESTIMATE_JSON" ]; then
6464
TIME_ESTIMATE_ARG="--test-time-estimates-json $(basename "$BP_TEST_ESTIMATE_JSON")"
6565
fi
6666

67-
# Copy rule-generated test plan file to working folder
68-
cp "$BP_TEST_PLAN" $BP_WORKING_FOLDER
67+
# Expand $TEST_UNDECLARED_OUTPUTS_DIR in rule-generated test plan file
68+
# And copy it to working folder
69+
sed 's/$TEST_UNDECLARED_OUTPUTS_DIR/'"${TEST_UNDECLARED_OUTPUTS_DIR//\//\\/}"'/g' $BP_TEST_PLAN > $BP_WORKING_FOLDER/$BP_TEST_PLAN
6970
BP_TEST_PLAN_ARG="$(basename "$BP_TEST_PLAN")"
7071

7172
# Copy bluepill and bp executables to working folder

0 commit comments

Comments
 (0)