Skip to content

Commit

Permalink
Force two rounds for the deterministic tests when no BAZEL_SUM is pro…
Browse files Browse the repository at this point in the history
…vided

This resulted in most of the time on doing only one compilation and comparing
with the previous checksum of generally a older build, making the deterministic
test fails weirdly.

--
MOS_MIGRATED_REVID=96769326
  • Loading branch information
damienmg committed Jun 25, 2015
1 parent 10a84ef commit 4349f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ fi
#
if [ $DO_CHECKSUM ]; then
new_step "Determinism test"
BAZEL_SUM=${BAZEL_SUM:-bazel-out/bazel_checksum}
if [ ! -f ${BAZEL_SUM} ]; then
if [ ! -f ${BAZEL_SUM:-x} ]; then
BAZEL_SUM=bazel-out/bazel_checksum
log "First build"
bootstrap_test ${BAZEL} ${BAZEL_SUM}
else
Expand Down

0 comments on commit 4349f94

Please sign in to comment.