Mercurial > octave-nkf
changeset 12673:64193afe93d8
runtests.m, rundemos.m: Remove final filesep() character from directory name
before looking it up in search patch.
* runtests.m, rundemos.m: Remove final filesep() character from directory name.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 15 May 2011 07:39:01 -0700 |
parents | 542a95cc1bd1 |
children | 9493880928c8 |
files | scripts/testfun/rundemos.m scripts/testfun/runtests.m |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/rundemos.m Sun May 15 07:26:20 2011 -0700 +++ b/scripts/testfun/rundemos.m Sun May 15 07:39:01 2011 -0700 @@ -35,6 +35,7 @@ if (is_absolute_filename (directory)) dirs = {directory}; else + directory = regexprep (directory, ['\',filesep(),'$'], ""); fullname = find_dir_in_path (directory); if (! isempty (fullname)) dirs = {fullname};
--- a/scripts/testfun/runtests.m Sun May 15 07:26:20 2011 -0700 +++ b/scripts/testfun/runtests.m Sun May 15 07:39:01 2011 -0700 @@ -35,6 +35,7 @@ if (is_absolute_filename (directory)) dirs = {directory}; else + directory = regexprep (directory, ['\',filesep(),'$'], ""); fullname = find_dir_in_path (directory); if (! isempty (fullname)) dirs = {fullname};