Skip to content
Snippets Groups Projects
Commit aadd3801 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

avoid test scd as asked for rtc

parent 376ba369
1 merge request!81fix rtc to use new getscd_mems function
Pipeline #55949 passed
...@@ -34,15 +34,24 @@ testCase.assertTrue(ischar(request)); ...@@ -34,15 +34,24 @@ testCase.assertTrue(ischar(request));
% gdat call % gdat call
gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request); 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 % avoid writing files in /tmp, may not be allowed
gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'',''write'',0)'],shot,request); 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 end
% logging % logging
fprintf('Testing gdat call: %s\n',gdat_call); 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 % in some future: check for warnings
%gdat_out = verifyWarningFree(testCase,eval(gdat_call),... %gdat_out = verifyWarningFree(testCase,eval(gdat_call),...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment