From e17c6c5473e4798e1f7032c43fc91100c009802b Mon Sep 17 00:00:00 2001 From: galperti <cristian.galperti@epfl.ch> Date: Tue, 26 Jan 2021 10:22:35 +0100 Subject: [PATCH] writegitinfoheader tests --- build/simulink_codegen/writegitinfoheader.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/simulink_codegen/writegitinfoheader.m b/build/simulink_codegen/writegitinfoheader.m index 77bb1b5..8c85f6c 100644 --- a/build/simulink_codegen/writegitinfoheader.m +++ b/build/simulink_codegen/writegitinfoheader.m @@ -117,10 +117,11 @@ function writegitinfoheader() cfg=Simulink.fileGenControl('getConfig'); codegenfolder=cfg.CodeGenFolder; cleancmd = ['rm -f ' codegenfolder '/*.so']; - [~,result] = system(cleancmd); + [status,result] = system(cleancmd); - if result~=0cleancmd + if result~=0 warning('Build folder could not be cleaned properly with the command: %s',cleancmd); + status end catch ME warning('Exception cleaning expcode build folder %s', codegenfolder); -- GitLab