Skip to content
Snippets Groups Projects
Commit 235dedd5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Modify get_directory_description to return a flat cell

(cherry picked from commit b840af9f)
parent fe64f0f7
Branches
Tags
No related merge requests found
...@@ -24,9 +24,10 @@ file = 1; ...@@ -24,9 +24,10 @@ file = 1;
for f=1:length(dd) for f=1:length(dd)
if ~(isequal(dd(f).name,'.') || isequal(dd(f).name,'..')) if ~(isequal(dd(f).name,'.') || isequal(dd(f).name,'..'))
if dd(f).isdir if dd(f).isdir
flist(file) = { get_directory_description([ basedir filesep dd(f).name]) }; r = get_directory_description([ basedir filesep dd(f).name]);
flist = { flist{:} r{:} };
else else
flist(file) = { [basedir filesep dd(f).name] }; flist{length(flist)+1} = [basedir filesep dd(f).name];
end end
file = file + 1; file = file + 1;
end end
......
...@@ -20,10 +20,6 @@ function [report, time] = run_unitary_tests(listoffiles) ...@@ -20,10 +20,6 @@ function [report, time] = run_unitary_tests(listoffiles)
report = {}; report = {};
for f=1:length(listoffiles) for f=1:length(listoffiles)
if iscell(listoffiles{f})
info = run_unitary_tests(listoffiles{f});
report = [report; info];
else
if isequal(listoffiles{f}(end-1:end),'.m') && isempty(strfind(listoffiles{f},'.#')) if isequal(listoffiles{f}(end-1:end),'.m') && isempty(strfind(listoffiles{f},'.#'))
if is_unitary_test_available(listoffiles{f}) if is_unitary_test_available(listoffiles{f})
disp(['***** Process unitary tests in ' listoffiles{f}]) disp(['***** Process unitary tests in ' listoffiles{f}])
...@@ -34,7 +30,6 @@ for f=1:length(listoffiles) ...@@ -34,7 +30,6 @@ for f=1:length(listoffiles)
end end
end end
end end
end
if nargout>1 if nargout>1
time = clock; time = clock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment