From aadd380136137948440759106627bf4a04347ebb Mon Sep 17 00:00:00 2001 From: Olivier Sauter <Olivier.Sauter@epfl.ch> Date: Wed, 25 Nov 2020 09:04:39 +0100 Subject: [PATCH] avoid test scd as asked for rtc --- matlab/tests/test_requestnames.m | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/matlab/tests/test_requestnames.m b/matlab/tests/test_requestnames.m index 69bb158e..33a4fbe6 100644 --- a/matlab/tests/test_requestnames.m +++ b/matlab/tests/test_requestnames.m @@ -34,15 +34,24 @@ testCase.assertTrue(ischar(request)); % gdat call gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request); -if strcmp(request,'eqdsk') +do_gdat_call = 1; +switch request + case 'eqdsk' % avoid writing files in /tmp, may not be allowed gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'',''write'',0)'],shot,request); + case 'scd' + % scd dummy call with error information in gdat, do not do test (done with rtc) + do_gdat_call = 0; end % logging fprintf('Testing gdat call: %s\n',gdat_call); -gdat_out = eval(gdat_call); %#ok<NASGU> +if do_gdat_call + gdat_out = eval(gdat_call); %#ok<NASGU> +else + gdat_out = struct([]); +end % in some future: check for warnings %gdat_out = verifyWarningFree(testCase,eval(gdat_call),... -- GitLab