File tree Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Expand file tree Collapse file tree 2 files changed +36
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ mkdir -m 777 /qemu
6
6
cd /qemu
7
7
8
8
curl --retry 5 -LO https://github.com/qemu/qemu/raw/master/pc-bios/s390-ccw.img
9
- curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20191129 /images/generic/kernel.debian
10
- curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20191129 /images/generic/initrd.debian
9
+ curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20200314 /images/generic/kernel.debian
10
+ curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20200314 /images/generic/initrd.debian
11
11
12
12
mv kernel.debian kernel
13
13
mv initrd.debian initrd.gz
Original file line number Diff line number Diff line change @@ -82,17 +82,45 @@ if [ "$QEMU" != "" ]; then
82
82
exec egrep " ^(PASSED)|(test result: ok)" " ${CARGO_TARGET_DIR} /out.log"
83
83
fi
84
84
85
- # FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
85
+ # FIXME: x86_64-unknown-linux-gnux32 fails to compile without --release
86
86
# See https://github.com/rust-lang/rust/issues/59220
87
87
opt=
88
88
if [ " $TARGET " = " x86_64-unknown-linux-gnux32" ]; then
89
89
opt=" --release"
90
90
fi
91
91
92
- cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml \
93
- --target " ${TARGET} "
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} "
94
121
95
- cargo test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
122
+ cargo test $opt --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
96
123
97
- cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
98
- --target " ${TARGET} "
124
+ cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
125
+ --target " ${TARGET} "
126
+ fi
You can’t perform that action at this time.
0 commit comments