diff --git a/tests/python_eol/execute_tests.sh b/tests/python_eol/execute_tests.sh index 5ff66d6db..79743003e 100755 --- a/tests/python_eol/execute_tests.sh +++ b/tests/python_eol/execute_tests.sh @@ -47,6 +47,8 @@ echo "** Running tests for Python $PYTHON_VERSION **" echo "** **" echo "****************************************************" +set -x + NOSE_OPTIONS="--verbose --with-xunit --xunit-file=/home/waagent/logs/waagent-sudo.junit.xml" docker run --rm \ diff --git a/tests/python_eol/pipeline.yml b/tests/python_eol/pipeline.yml index 90a1a9577..320f0f3d6 100644 --- a/tests/python_eol/pipeline.yml +++ b/tests/python_eol/pipeline.yml @@ -53,7 +53,7 @@ jobs: LOGS_DIRECTORY: $(Agent.TempDirectory)/logs # The execute_tests.sh gives ownership of the logs directory to the container user; re-take ownership. - - bash: sudo find "$LOGS_DIRECTORY" -exec chown "$USER" {} \; + - bash: sudo find "$(Agent.TempDirectory)/logs" -exec chown "$USER" {} \; displayName: "Change ownership of logs directory" condition: always()