From: armando-migliaccio Date: Fri, 9 Jan 2015 02:03:17 +0000 (-0800) Subject: Limit permission change X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=46a34469b24f4cad4e609980df5fa5cc5c4ca981;p=openstack-build%2Fneutron-build.git Limit permission change 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 --- diff --git a/neutron/tests/contrib/post_test_hook.sh b/neutron/tests/contrib/post_test_hook.sh index fce0288d9..36a736b60 100644 --- a/neutron/tests/contrib/post_test_hook.sh +++ b/neutron/tests/contrib/post_test_hook.sh @@ -9,7 +9,8 @@ venv=${1:-"dsvm-functional"} 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