From 46a34469b24f4cad4e609980df5fa5cc5c4ca981 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Thu, 8 Jan 2015 18:03:17 -0800 Subject: [PATCH] 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 --- neutron/tests/contrib/post_test_hook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.2