Commit 2834bc18 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed issue with path.

parent 3fc68ee2
...@@ -33,6 +33,10 @@ function report = run_unitary_tests_in_directory(dirname, savereport, printrepor ...@@ -33,6 +33,10 @@ function report = run_unitary_tests_in_directory(dirname, savereport, printrepor
% You should have received a copy of the GNU General Public License % You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>. % along with Dynare. If not, see <http://www.gnu.org/licenses/>.
INIT_PATH = pwd();
cd(dirname);
system('git show --pretty=format:"Last commit %H by %an, %ar %n-> %s" HEAD > git.info'); system('git show --pretty=format:"Last commit %H by %an, %ar %n-> %s" HEAD > git.info');
system('git rev-parse HEAD > git.last-commit-hash'); system('git rev-parse HEAD > git.last-commit-hash');
...@@ -45,6 +49,8 @@ fid = fopen('git.last-commit-hash'); ...@@ -45,6 +49,8 @@ fid = fopen('git.last-commit-hash');
gitlastcommithash = fgetl(fid); gitlastcommithash = fgetl(fid);
fclose(fid); fclose(fid);
cd(INIT_PATH);
matlabverion = version; matlabverion = version;
platform = computer; platform = computer;
...@@ -60,4 +66,4 @@ end ...@@ -60,4 +66,4 @@ end
if nargin>2 if nargin>2
build_report_summary(['report-' gitlastcommithash '.mat'], printreport, sendreport); build_report_summary(['report-' gitlastcommithash '.mat'], printreport, sendreport);
end end
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment