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 2
2
3
3
set -ex
4
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
5
+ ./add_dummy_commit.sh
20
6
21
7
# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.
22
8
../x.py --stage 2 test --skip src/tools/tidy
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
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
5
+ ./add_dummy_commit.sh
20
6
21
7
../x.py --stage 2 test \
22
8
--skip tests \
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
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
5
+ ./add_dummy_commit.sh
6
+
7
+ # #### Test stage 2 #####
20
8
21
9
../x.py --stage 2 test \
22
10
--skip compiler \
Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
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
5
+ ./add_dummy_commit.sh
20
6
21
7
# #### Test stage 1 #####
22
8
You can’t perform that action at this time.
0 commit comments