]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Limit permission change
authorarmando-migliaccio <armamig@gmail.com>
Fri, 9 Jan 2015 02:03:17 +0000 (18:03 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 9 Jan 2015 03:27:35 +0000 (19:27 -0800)
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

neutron/tests/contrib/post_test_hook.sh

index fce0288d9f4a1f42282b1c2614157b4b392b0c62..36a736b6080c2621cb94a1c824c180a480d379f4 100644 (file)
@@ -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