From 58c9c488d8416b51cf3c8a8527af445ce62da43e Mon Sep 17 00:00:00 2001
From: Federico Felici <federico.felici@epfl.ch>
Date: Thu, 30 Sep 2021 15:29:13 +0200
Subject: [PATCH] Correct COV file name

---
 matlab/run_gdat_tests.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/run_gdat_tests.m b/matlab/run_gdat_tests.m
index 1f2a1007..cd4b51c4 100644
--- a/matlab/run_gdat_tests.m
+++ b/matlab/run_gdat_tests.m
@@ -1,4 +1,4 @@
-function [passed,results] = run_tbx_tests(test_case)
+function [passed,results] = run_tbx_tests(test_case,coverage_report)
 % Test runner for generic toolbox tests
 
 if nargin==0 || isempty(test_case)
@@ -98,7 +98,7 @@ if needCOV
       reportFormat = matlab.unittest.plugins.codecoverage.CoverageReport(reportFolder);
     otherwise
       % Produce XML file in Cobertura format (for Gitlab MR viz.)
-      xmlFile = sprintf('test_%s_%s_cov.xml',test_case,version('-release'));
+      xmlFile = fullfile(getenv('CI_PROJECT_DIR'),sprintf('test_%s_%s_cov.xml',test_case,version('-release')));
       reportFormat = matlab.unittest.plugins.codecoverage.CoberturaFormat(xmlFile);
   end
   p = matlab.unittest.plugins.CodeCoveragePlugin.forFolder(fileparts(mfilename('fullpath')),...
-- 
GitLab