Skip to content

Commit 204231f

Browse files
committed
ci: always set RUSTC_TEST_GIT_HASH
To always run `tests/run-make/version-verbose-commit-hash` in test jobs.
1 parent 6d199e7 commit 204231f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ fi
110110
export RUST_RELEASE_CHANNEL=$(releaseChannel)
111111
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL"
112112

113+
# Always set `RUSTC_TEST_GIT_HASH` to run
114+
# `tests/run-make/version-verbose-commit-hash` under CI conditions (for jobs
115+
# that run tests).
116+
export RUSTC_TEST_GIT_HASH=1
117+
113118
if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
114119
if [[ "$CI_JOB_NAME" == *ohos* ]]; then
115120
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-static-stdcpp"

0 commit comments

Comments
 (0)