Skip to content

Commit 05fb494

Browse files
committed
make test cd commands more robust
1 parent 604575b commit 05fb494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MOST/tests/TestMOST.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function captureVisibility(testCase)
3434
testCase.OriginalDefault = get(0,'DefaultFigureVisible');
3535
end
3636
function runBEMIO(testCase)
37-
cd(testCase.hydroDataDir);
37+
cd(fullfile(testCase.testDir, testCase.hydroDataDir));
3838
if isfile(testCase.h5Name)
3939
fprintf('runBEMIO skipped, *.h5 already exists\n');
4040
else
@@ -45,7 +45,7 @@ function runBEMIO(testCase)
4545
function runMOSTIO(testCase)
4646
% Test the pre-processing here so that it does not interfere
4747
% with the precise comparison of results.
48-
cd(testCase.mostDataDir);
48+
cd(fullfile(testCase.testDir, testCase.mostDataDir));
4949
mostIO
5050
cd(testCase.testDir)
5151
end

0 commit comments

Comments
 (0)