diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39022b9eab98e8a8a3d7b64a96abf9edbed0dac1..1f51a5b1732f0a50708687e3c5700d0e09add8a9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ testsuite_matlab:
     - make check-matlab
   artifacts:
     paths:
-      - test/report.pdf
+      - test/my/report/dir/report.pdf
 
 testsuite_octave:
   stage: test
@@ -15,4 +15,4 @@ testsuite_octave:
     - make check-octave
   artifacts:
     paths:
-      - test/report.pdf
+      - test/my/report/dir/report.pdf
diff --git a/Makefile b/Makefile
index 450b157a8b38692ae3836f388947b953fe84d613..41ac96e0bee59a5eda315ad17b56c8b72819e277 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ all: check-octave check-matlab
 
 check-octave:
 	@cd test ;\
-	$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../dseries/src']); addpath([pwd() '/../src']); runtest;" && [ -f report.pdf ]
+	$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../dseries/src']); addpath([pwd() '/../src']); runtest;" && [ -f my/report/dir/report.pdf ]
 
 check-matlab:
-	@$(MATLAB) -nosplash -nodisplay -r "addpath dseries/src; addpath src; cd test; runtest; quit" && [ -f test/report.pdf ]
+	@$(MATLAB) -nosplash -nodisplay -r "addpath dseries/src; addpath src; cd test; runtest; quit" && [ -f test/my/report/dir/report.pdf ]