Skip to content

Commit

Permalink
Execute tests as user nobody...
Browse files Browse the repository at this point in the history
  • Loading branch information
sithhell authored and Thomas Heller committed Feb 12, 2019
1 parent 2582d6c commit fb0d2d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitlab-ci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ get junit2html:
script:
- cd build
- ninja ${TESTS}
- ctest -T test --no-compress-output --output-on-failure -R ${TESTS}
# since the container is run as root, we just execute the tests as the
# user nobody...
- chown -R nobody .
- su -s /bin/bash nobody -c "ctest -T test --no-compress-output --output-on-failure -R ${TESTS}"
after_script:
- xsltproc conv.xsl build/Testing/`head -n 1 < build/Testing/TAG`/Test.xml > ${TESTS}.xml
- ./junit2html/junit2html ./${TESTS}.xml ./${TESTS}.html
Expand Down

0 comments on commit fb0d2d6

Please sign in to comment.