Skip to content

Commit

Permalink
change COBRA variable to CELLFIE
Browse files Browse the repository at this point in the history
  • Loading branch information
loicmarx committed May 27, 2019
1 parent 137af58 commit b10863d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/base/runScriptFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@

global CBT_MISSING_REQUIREMENTS_ERROR_ID

COBRA_TESTSUITE_TESTFILE = fileName;
CELLFIE_TESTSUITE_TESTFILE = fileName;

% get the timinig (and hope these values are not overwritten.
COBRA_TESTSUITE_STARTTIME = clock();
CELLFIE_TESTSUITE_STARTTIME = clock();

try
% run the file
executefile(fileName);
catch ME
% vatch errors and interpret them
clearvars -except ME COBRA_TESTSUITE_STARTTIME COBRA_TESTSUITE_TESTFILE CBT_MISSING_REQUIREMENTS_ERROR_ID
scriptTime = etime(clock(), COBRA_TESTSUITE_STARTTIME);
clearvars -except ME CELLFIE_TESTSUITE_STARTTIME CELLFIE_TESTSUITE_TESTFILE CBT_MISSING_REQUIREMENTS_ERROR_ID
scriptTime = etime(clock(), CELLFIE_TESTSUITE_STARTTIME);
result = struct('status', 'failed', 'failed', true, 'passed', false, 'skipped', false, 'fileName', ...
COBRA_TESTSUITE_TESTFILE, 'time', scriptTime, 'statusMessage', 'fail', 'Error', ME);
CELLFIE_TESTSUITE_TESTFILE, 'time', scriptTime, 'statusMessage', 'fail', 'Error', ME);
if strcmp(ME.identifier, CBT_MISSING_REQUIREMENTS_ERROR_ID)
% requirement missing, so the test was skipped.
result.status = 'skipped';
Expand All @@ -50,10 +50,10 @@
end

% get the timinig.
scriptTime = etime(clock(), COBRA_TESTSUITE_STARTTIME);
scriptTime = etime(clock(), CELLFIE_TESTSUITE_STARTTIME);

result = struct('status', 'passed', 'failed', false, 'passed', true, 'skipped', false, 'fileName', ...
COBRA_TESTSUITE_TESTFILE, 'time', scriptTime, 'statusMessage', 'success', 'Error', MException('', ''));
CELLFIE_TESTSUITE_TESTFILE, 'time', scriptTime, 'statusMessage', 'success', 'Error', MException('', ''));

end

Expand Down

0 comments on commit b10863d

Please sign in to comment.