@@ -32,39 +32,9 @@ case "$target" in
3232 * loongarch* ) cmd=" $cmd --exclude ctest --exclude ctest-test --exclude ctest-next" ;;
3333esac
3434
35- if [ " $target " = " s390x-unknown-linux-gnu" ]; then
36- # FIXME: s390x-unknown-linux-gnu often fails to test due to timeout,
37- # so we retry this N times.
38- N=5
39- n=0
40- passed=0
41- until [ $n -ge $N ]; do
42- if [ " $passed " = " 0" ]; then
43- # shellcheck disable=SC2086
44- if $cmd --no-default-features -- $test_flags ; then
45- passed=$(( passed + 1 ))
46- continue
47- fi
48- elif [ " $passed " = " 1" ]; then
49- # shellcheck disable=SC2086
50- if $cmd -- $test_flags ; then
51- passed=$(( passed + 1 ))
52- continue
53- fi
54- elif [ " $passed " = " 2" ]; then
55- # shellcheck disable=SC2086
56- if $cmd --features extra_traits -- $test_flags ; then
57- break
58- fi
59- fi
60- n=$(( n + 1 ))
61- sleep 1
62- done
63- else
64- # shellcheck disable=SC2086
65- $cmd --no-default-features -- $test_flags
66- # shellcheck disable=SC2086
67- $cmd -- $test_flags
68- # shellcheck disable=SC2086
69- $cmd --features extra_traits -- $test_flags
70- fi
35+ # shellcheck disable=SC2086
36+ $cmd --no-default-features -- $test_flags
37+ # shellcheck disable=SC2086
38+ $cmd -- $test_flags
39+ # shellcheck disable=SC2086
40+ $cmd --features extra_traits -- $test_flags
0 commit comments