Skip to content

Commit

Permalink
Update testAll.m
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesbonnet authored Oct 5, 2020
1 parent 6142293 commit 0aca03a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/testAll.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
launchTestSuite = false;
end
else
% Running in CI environment
fprintf('Running test in Jenkins/CI environment\n');

% on the CI, always reset the path to make absolutely sure, that we test
% the current version
restoredefaultpath;
Expand Down Expand Up @@ -260,6 +263,9 @@
end
end
catch ME

fprintf('exception %s while running test: %s\n', ME.identifier, ME.message);

% Also clean up temporary files in case of an error.
removeTempFiles(testDirPath, testDirContent);
if ~isempty(strfind(getenv('HOME'), 'jenkins')) || ~isempty(strfind(getenv('USERPROFILE'), 'jenkins'))
Expand Down

0 comments on commit 0aca03a

Please sign in to comment.