[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)
9 jobs for master in 2 minutes and 32 seconds (queued for 1 second)
latest
Status Name Job ID Coverage
  Test
failed doc-coverage #122288

00:02:09

failed format #122289
allowed to fail

00:01:54

failed robotpkg-multicontact-api-18.04-release #122281

00:02:09

failed robotpkg-py-multicontact-api-py2-18.04-release #122282

00:01:32

failed robotpkg-py-multicontact-api-py3-18.04-release #122283

00:02:10

failed robotpkg-py-multicontact-api-py3-20.04-release #122284

00:01:38

failed robotpkg-py-multicontact-api-py3-buster-release #122285
allowed to fail

00:02:08

failed robotpkg-py-multicontact-api-py3-ferrum-release #122286
allowed to fail

00:02:30

failed robotpkg-py-multicontact-api-py3-stretch-release #122287

00:02:29

 
Name Stage Failure
failed
robotpkg-py-multicontact-api-py3-stretch-release Test
/root/robotpkg/wip/multicontact-api/work/configure.log
/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make[1]: *** [do-configure-cmake] Error 1
make: *** [do-depends] Error 1
/root/robotpkg/mk/depends/depends.mk:70: recipe for target 'do-depends' failed
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
make: *** [install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-py-multicontact-api-py3-buster-release Test
| See also "/root/robotpkg/wip/multicontact-api/work/multicontact-api-2.1.0/CMakeFiles/CMakeOutput.log".

For details or bug reports, check the complete log file in:
/root/robotpkg/wip/multicontact-api/work/configure.log
make[1]: *** [/root/robotpkg/mk/configure/cmake-configure.mk:100: do-configure-cmake] Error 1
make: *** [/root/robotpkg/mk/depends/depends.mk:70: do-depends] Error 1
make: *** [/root/robotpkg/mk/internal/trusted.mk:36: install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
format Test
./examples/display_gepetto_gui.py:73:3: E114 indentation is not a multiple of 4 (comment)
./examples/display_gepetto_gui.py:74:3: E111 indentation is not a multiple of 4
./examples/display_gepetto_gui.py:75:3: E111 indentation is not a multiple of 4
./examples/display_gepetto_gui.py:76:3: E111 indentation is not a multiple of 4
./examples/display_gepetto_gui.py:77:3: E111 indentation is not a multiple of 4
./examples/display_gepetto_gui.py:78:3: E111 indentation is not a multiple of 4
./examples/display_gepetto_gui.py:87:1: W391 blank line at end of file
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-py-multicontact-api-py3-20.04-release Test
| See also "/root/robotpkg/wip/multicontact-api/work/multicontact-api-2.1.0/CMakeFiles/CMakeOutput.log".
For details or bug reports, check the complete log file in:

/root/robotpkg/wip/multicontact-api/work/configure.log
make[1]: *** [/root/robotpkg/mk/configure/cmake-configure.mk:100: do-configure-cmake] Error 1
make: *** [/root/robotpkg/mk/depends/depends.mk:70: do-depends] Error 1
make: *** [/root/robotpkg/mk/internal/trusted.mk:36: install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-py-multicontact-api-py3-ferrum-release Test

/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make[1]: *** [do-configure-cmake] Error 1
make: *** [do-depends] Error 1
/root/robotpkg/mk/depends/depends.mk:70: recipe for target 'do-depends' failed
make: *** [install] Error 2
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
doc-coverage Test
make: *** [install] Error 2
Running after_script
Running after script...
$ cd /root/robotpkg/wip/py-multicontact-api
$ build=$(make show-var VARNAME=CONFIGURE_DIRS); cd $(make show-var VARNAME=WRKSRC); cd $build
$ make doc
make: *** No rule to make target 'doc'. Stop.
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-py-multicontact-api-py2-18.04-release Test
/root/robotpkg/wip/multicontact-api/work/configure.log
/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make[1]: *** [do-configure-cmake] Error 1
make: *** [do-depends] Error 1
/root/robotpkg/mk/depends/depends.mk:70: recipe for target 'do-depends' failed
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
make: *** [install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-py-multicontact-api-py3-18.04-release Test
/root/robotpkg/wip/multicontact-api/work/configure.log
/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make[1]: *** [do-configure-cmake] Error 1
/root/robotpkg/mk/depends/depends.mk:70: recipe for target 'do-depends' failed
make: *** [do-depends] Error 1
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
make: *** [install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
robotpkg-multicontact-api-18.04-release Test
For details or bug reports, check the complete log file in:
/root/robotpkg/wip/multicontact-api/work/configure.log

/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make: *** [do-configure-cmake] Error 1
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
make: *** [install] Error 2
Cleaning up file based variables
ERROR: Job failed: exit code 1