Skip to content

Commit 324d132

Browse files
committed
Try restructuring SmokeTests
1 parent 9c34beb commit 324d132

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: SoftwareTests/SmokeTests.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ function APISmokeTest(testCase,Filename,pycode,txt)
9797
close all
9898
end
9999

100+
function RunMyFile(~,Filename)
101+
run(Filename);
102+
end
103+
100104
function SimpleSmokeTest(testCase,Filename)
101105

102106
% Run the Smoke test
103107
RootFolder = currentProject().RootFolder;
104108
cd(RootFolder)
105109
disp(">> Running " + Filename);
106110
try
107-
run(fullfile("Scripts",Filename));
111+
RunMyFile(testCase,Filename)
108112
catch ME
109113
testCase.verifyTrue(false,ME.message);
110114
end

0 commit comments

Comments
 (0)