File tree Expand file tree Collapse file tree 2 files changed +5
-42
lines changed Expand file tree Collapse file tree 2 files changed +5
-42
lines changed Original file line number Diff line number Diff line change 1919 rustup set profile minimal
2020 rustup update --force $toolchain
2121 rustup default $toolchain
22+ cargo install rustup-toolchain-install-master
23+ rustup-toolchain-install-master f1b97ee7f8ffb1a814944b85c7e05a1555a7eda5
24+ rustup default f1b97ee7f8ffb1a814944b85c7e05a1555a7eda5
2225fi
2326
2427if [ -n " $TARGET " ]; then
Original file line number Diff line number Diff line change @@ -82,45 +82,5 @@ if [ "$QEMU" != "" ]; then
8282 exec egrep " ^(PASSED)|(test result: ok)" " ${CARGO_TARGET_DIR} /out.log"
8383fi
8484
85- # FIXME: x86_64-unknown-linux-gnux32 fails to compile without --release
86- # See https://github.com/rust-lang/rust/issues/59220
87- opt=
88- if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
89- opt=" --release"
90- fi
91-
92- if [ " $TARGET " = " s390x-unknown-linux-gnu" ]; then
93- # FIXME: s390x-unknown-linux-gnu often fails to test due to timeout,
94- # so we retry this N times.
95- N=5
96- n=0
97- passed=0
98- until [ $n -ge $N ]
99- do
100- if [ " $passed " = " 0" ]; then
101- if cargo test --no-default-features --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
102- passed=$(( passed+ 1 ))
103- continue
104- fi
105- elif [ " $passed " = " 1" ]; then
106- if cargo test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
107- passed=$(( passed+ 1 ))
108- continue
109- fi
110- elif [ " $passed " = " 2" ]; then
111- if cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
112- break
113- fi
114- fi
115- n=$(( n+ 1 ))
116- sleep 1
117- done
118- else
119- cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml \
120- --target " ${TARGET} "
121-
122- cargo test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
123-
124- cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
125- --target " ${TARGET} "
126- fi
85+ cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
86+ --target " ${TARGET} "
You can’t perform that action at this time.
0 commit comments