File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 154
154
# check for clock drifts. An HTTP URL is used instead of HTTPS since on Azure
155
155
# Pipelines it happened that the certificates were marked as expired.
156
156
datecheck () {
157
- echo " ::group::Clock drift check"
157
+ # If an error has happened, we do not want to start a new group, because that will collapse
158
+ # a previous group that might have contained the error log.
159
+ exit_code=$?
160
+
161
+ if [ $exit_code -eq 0 ]
162
+ then
163
+ echo " ::group::Clock drift check"
164
+ fi
165
+
158
166
echo -n " local time: "
159
167
date
160
168
echo -n " network time: "
161
169
curl -fs --head http://ci-caches.rust-lang.org | grep ^Date: \
162
170
| sed ' s/Date: //g' || true
163
- echo " ::endgroup::"
171
+
172
+ if [ $exit_code -eq 0 ]
173
+ then
174
+ echo " ::endgroup::"
175
+ fi
164
176
}
165
177
datecheck
166
178
trap datecheck EXIT
You can’t perform that action at this time.
0 commit comments