This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +25
-60
lines changed Expand file tree Collapse file tree 5 files changed +25
-60
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ if [ " $READ_ONLY_SRC " = " 0" ]; then
6+ # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
7+ # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
8+ # compiler and/or library. Here we are adding a dummy commit on compiler and running
9+ # that test to make sure we never download CI rustc with a change on the compiler tree.
10+ echo " " >> ../compiler/rustc/src/main.rs
11+ git config --global user.email " dummy@dummy.com"
12+ git config --global user.name " dummy"
13+ git add ../compiler/rustc/src/main.rs
14+ git commit -m " test commit for rust.download-rustc=if-unchanged logic"
15+ DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
16+ -- core::builder::tests::ci_rustc_if_unchanged_logic
17+ # Revert the dummy commit
18+ git reset --hard HEAD~1
19+ fi
Original file line number Diff line number Diff line change 22
33set -ex
44
5- if [ " $READ_ONLY_SRC " = " 0" ]; then
6- # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
7- # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
8- # compiler and/or library. Here we are adding a dummy commit on compiler and running
9- # that test to make sure we never download CI rustc with a change on the compiler tree.
10- echo " " >> ../compiler/rustc/src/main.rs
11- git config --global user.email " dummy@dummy.com"
12- git config --global user.name " dummy"
13- git add ../compiler/rustc/src/main.rs
14- git commit -m " test commit for rust.download-rustc=if-unchanged logic"
15- DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
16- -- core::builder::tests::ci_rustc_if_unchanged_logic
17- # Revert the dummy commit
18- git reset --hard HEAD~1
19- fi
5+ ./add_dummy_commit.sh
206
217# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
228../x.py --stage 2 test --skip src/tools/tidy
Original file line number Diff line number Diff line change 22
33set -ex
44
5- if [ " $READ_ONLY_SRC " = " 0" ]; then
6- # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
7- # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
8- # compiler and/or library. Here we are adding a dummy commit on compiler and running
9- # that test to make sure we never download CI rustc with a change on the compiler tree.
10- echo " " >> ../compiler/rustc/src/main.rs
11- git config --global user.email " dummy@dummy.com"
12- git config --global user.name " dummy"
13- git add ../compiler/rustc/src/main.rs
14- git commit -m " test commit for rust.download-rustc=if-unchanged logic"
15- DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
16- -- core::builder::tests::ci_rustc_if_unchanged_logic
17- # Revert the dummy commit
18- git reset --hard HEAD~1
19- fi
5+ ./add_dummy_commit.sh
206
217../x.py --stage 2 test \
228 --skip tests \
Original file line number Diff line number Diff line change 22
33set -ex
44
5- if [ " $READ_ONLY_SRC " = " 0" ]; then
6- # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
7- # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
8- # compiler and/or library. Here we are adding a dummy commit on compiler and running
9- # that test to make sure we never download CI rustc with a change on the compiler tree.
10- echo " " >> ../compiler/rustc/src/main.rs
11- git config --global user.email " dummy@dummy.com"
12- git config --global user.name " dummy"
13- git add ../compiler/rustc/src/main.rs
14- git commit -m " test commit for rust.download-rustc=if-unchanged logic"
15- DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
16- -- core::builder::tests::ci_rustc_if_unchanged_logic
17- # Revert the dummy commit
18- git reset --hard HEAD~1
19- fi
5+ ./add_dummy_commit.sh
6+
7+ # #### Test stage 2 #####
208
219../x.py --stage 2 test \
2210 --skip compiler \
Original file line number Diff line number Diff line change 22
33set -ex
44
5- if [ " $READ_ONLY_SRC " = " 0" ]; then
6- # `core::builder::tests::ci_rustc_if_unchanged_logic` bootstrap test ensures that
7- # "download-rustc=if-unchanged" logic don't use CI rustc while there are changes on
8- # compiler and/or library. Here we are adding a dummy commit on compiler and running
9- # that test to make sure we never download CI rustc with a change on the compiler tree.
10- echo " " >> ../compiler/rustc/src/main.rs
11- git config --global user.email " dummy@dummy.com"
12- git config --global user.name " dummy"
13- git add ../compiler/rustc/src/main.rs
14- git commit -m " test commit for rust.download-rustc=if-unchanged logic"
15- DISABLE_CI_RUSTC_IF_INCOMPATIBLE=0 ../x.py test bootstrap \
16- -- core::builder::tests::ci_rustc_if_unchanged_logic
17- # Revert the dummy commit
18- git reset --hard HEAD~1
19- fi
5+ ./add_dummy_commit.sh
206
217# #### Test stage 1 #####
228
You can’t perform that action at this time.
0 commit comments