Skip to content

Commit

Permalink
issue #31
Browse files Browse the repository at this point in the history
Enhancement: directed output of picgen tests to logger.info
  • Loading branch information
dimamih committed Feb 26, 2018
1 parent 18c406b commit 4c69d01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions products/+elltool/+doc/+picgen/+test/+mlunit/SuiteBasic.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function tear_down(self)
function testPicGen(~)
import modgen.io.TmpDataManager;
import elltool.doc.picgen.PicGenController;
import elltool.logging.Log4jConfigurator;
logger=Log4jConfigurator.getLogger();
testFileName = modgen.common.getcallername(1);
[pathstrVec, ~, ~] = fileparts(which(testFileName));
TmpDataManager.setRootDir(pathstrVec);
Expand All @@ -46,8 +48,7 @@ function testPicGen(~)
picFileNameVec = [picFileNameVec picFileName]; %#ok<AGROW>
picgenFunctionName = strcat('elltool.doc.picgen.',...
picgenFileName);
fPicGen = str2func(picgenFunctionName);
fPicGen();
logger.info(evalc(picgenFunctionName));
isFileExistVec(iElem) = ...
modgen.system.ExistanceChecker.isFile(...
[testDirPath filesep picFileName]); %#ok<AGROW>
Expand Down

0 comments on commit 4c69d01

Please sign in to comment.