Skip to content

Commit 7a3b89f

Browse files
authored
Chronos replay: Allow overriding replay scripts. (#13428)
This is to enable #13427
1 parent 6554e63 commit 7a3b89f

File tree

1 file changed

+4
-2
lines changed
  • infra/base-images/base-builder

1 file changed

+4
-2
lines changed

infra/base-images/base-builder/compile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ if [[ ! -z "${CAPTURE_REPLAY_SCRIPT-}" ]]; then
294294
# Capture a replaying build script which can be used for replaying the build
295295
# after a vanilla build. This script is meant to be used in a cached
296296
# container.
297-
python3 -m pip install bashlex
298-
python3 /usr/local/bin/bash_parser.py $SRC/build.sh
297+
if [[ ! -f $SRC/replay_build.sh ]]; then
298+
python3 -m pip install bashlex
299+
python3 /usr/local/bin/bash_parser.py $SRC/build.sh
300+
fi
299301
fi
300302

301303
# Prepare the build command to run the project's build script.

0 commit comments

Comments
 (0)