[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)
12 jobs for master in 2 minutes and 26 seconds (queued for 8 seconds)
latest
Status Name Job ID Coverage
  Test
failed doc-coverage #128504

00:01:36

failed format #128505
allowed to fail

00:00:31

failed robotpkg-multicontact-api-18.04 #128494

00:00:38

failed robotpkg-multicontact-api-20.04 #128495

00:00:36

failed robotpkg-multicontact-api-buster #128496
allowed to fail

00:01:09

failed robotpkg-multicontact-api-ferrum #128497
allowed to fail

00:02:24

failed robotpkg-multicontact-api-stretch #128498
allowed to fail

00:00:29

failed robotpkg-py-multicontact-api-18.04 #128499

00:00:25

failed robotpkg-py-multicontact-api-20.04 #128500

00:00:37

failed robotpkg-py-multicontact-api-buster #128501

00:00:44

failed robotpkg-py-multicontact-api-ferrum #128502
allowed to fail

00:01:04

failed robotpkg-py-multicontact-api-stretch #128503

00:02:01

 
Name Stage Failure
failed
robotpkg-multicontact-api-ferrum 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
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
robotpkg-py-multicontact-api-stretch 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
doc-coverage Test
make: *** [install] Error 2
/root/robotpkg/mk/internal/trusted.mk:36: recipe for target 'install' failed
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-multicontact-api-buster Test
| 
| -- Configuring incomplete, errors occurred!
| 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: *** [/root/robotpkg/mk/configure/cmake-configure.mk:100: do-configure-cmake] 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-ferrum 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-buster Test
| 
|
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-20.04 Test
| -- Configuring incomplete, errors occurred!
| 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-multicontact-api-18.04 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
/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
failed
robotpkg-multicontact-api-20.04 Test
| 
| -- Configuring incomplete, errors occurred!
| 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: *** [/root/robotpkg/mk/configure/cmake-configure.mk:100: do-configure-cmake] 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: E303 too many blank lines (2)
./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-multicontact-api-stretch 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

/root/robotpkg/mk/configure/cmake-configure.mk:100: recipe for target 'do-configure-cmake' failed
make: *** [do-configure-cmake] Error 1
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
robotpkg-py-multicontact-api-18.04 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[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