Skip to content

Commit

Permalink
Expand $TEST_UNDECLARED_OUTPUTS_DIR when running test from bazel (#553)
Browse files Browse the repository at this point in the history
Signed-off-by: Nan Wang <nanwang1101@yahoo.com>
  • Loading branch information
nanwng committed May 24, 2023
1 parent 304ddfb commit a7fcb47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bptestrunner/bluepill_batch_test_runner.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7fcb47

Please sign in to comment.