diff --git a/test/integration-test.yml b/test/integration-test.yml
index 8a403fd0f5f2a8550e87d6e439a288aff4a2dac6..e6a5723fbdd0940cab5a622bec1ae63c32aefa7f 100644
--- a/test/integration-test.yml
+++ b/test/integration-test.yml
@@ -35,7 +35,7 @@
     - name: Store test results locally
       local_action:
         module: copy
-        dest: "pytest.xml"
+        dest: "{{ lookup('env', 'CI_PROJECT_DIR') | default('..') }}/pytest.xml"
         content: "{{ pytest_xml['content'] | b64decode }}"
       when: "pytest_xml_stat.exists | default(False)"