A failure was observed where the functional job would fail with error
chmod: changing permissions of ./neutron/agent/metadata/namespace_proxy.pyc
Operation not permitted
We should limit the permission change to logs only to avoid this potential
error.
Change-Id: I28f4060bab0edd1cd0c4e25eec9017601f4bdf24
function generate_testr_results {
# Give job user rights to access tox logs
- sudo -H -u stack chmod o+rw -R .
+ sudo -H -u stack chmod o+rw .
+ sudo -H -u stack chmod o+rw -R .testrepository
if [ -f ".testrepository/0" ] ; then
.tox/$venv/bin/subunit-1to2 < .testrepository/0 > ./testrepository.subunit
.tox/$venv/bin/python $SCRIPTS_DIR/subunit2html.py ./testrepository.subunit testr_results.html