Skip to content
Snippets Groups Projects
Commit dd69e74c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in main unit test script.

parent 33bb37ee
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,13 @@ catch ...@@ -20,11 +20,13 @@ catch
install_unit_test_toolbox = true; install_unit_test_toolbox = true;
end end
% Get path to the current script
unit_tests_root = strrep(which('runalltests'),'runalltests.m','');
% Initialize the dseries module % Initialize the dseries module
try try
initialize_dseries_toolbox; initialize_dseries_toolbox;
catch catch
unit_tests_root = strrep(which('runalltests'),'runalltests.m','');
addpath([unit_tests_root '../src']); addpath([unit_tests_root '../src']);
initialize_dseries_toolbox; initialize_dseries_toolbox;
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment