[Tests] Use a range-based for loop

to fix tests on Arch. Otherwise, an issue in the iterator raises:
unknown location(0): fatal error: in "StatsTests/contact_phase": signal: SIGSEGV, si_code: 128 (memory access violation at address: 0x00000000)
13 jobs for master in 13 minutes and 28 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Test
passed #104208
doc-coverage

00:12:53

failed #104213
allowed to fail
format

00:00:09

passed #104201
robotpkg-multicontact-api-18.04-release

00:01:27

passed #104203
robotpkg-py-multicontact-api-py2-18.04-release

00:04:40

passed #104202
robotpkg-py-multicontact-api-py3-16.04-release

00:04:30

passed #104204
robotpkg-py-multicontact-api-py3-18.04-release

00:10:09

passed #104205
robotpkg-py-multicontact-api-py3-20.04-release

00:13:26

passed #104206
robotpkg-py-multicontact-api-py3-buster-release

00:10:48

failed #104212
allowed to fail
robotpkg-py-multicontact-api-py3-stretch-release

00:00:09

failed #104211
allowed to fail
format

00:00:09

failed #104209
allowed to fail
format

00:00:09

failed #104210
allowed to fail
robotpkg-py-multicontact-api-py3-stretch-release

00:00:09

failed #104207
allowed to fail
robotpkg-py-multicontact-api-py3-stretch-release

00:00:09

 
Name Stage Failure
failed
format Test There has been a runner system failure, please try again
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
failed
robotpkg-py-multicontact-api-py3-stretch-release Test There has been a runner system failure, please try again
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Failed to remove network for build
ERROR: Preparation failed: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)
Will be retried in 3s ...
ERROR: Job failed (system failure): Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (docker.go:985:0s)