Commit 693acff0 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in the script launching all the unit tests.

parent 44c38fe4
opath = path();
% Check that the m-unit-tests module is available.
install_unit_test_toolbox = false;
try
initialize_unit_tests_toolbox;
catch
......@@ -12,6 +15,7 @@ catch
delete('master.zip')
addpath([pwd() '/../externals/m-unit-tests-master/src'])
initialize_unit_tests_toolbox;
install_unit_test_toolbox = true;
end
% Initialize the dseries module
......@@ -28,5 +32,8 @@ tmp = tmp(1:end-1); % Remove trailing slash.
run_unitary_tests_in_directory(tmp);
delete('*.log');
rmdir('../externals/m-unit-tests-master','s');
if install_unit_test_toolbox
rmdir('../externals/m-unit-tests-master','s');
end
path(opath);
\ 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