Skip to content

Commit 6f9d982

Browse files
committed
test(fix): do not run packaging test in older releases
1 parent 1cb62cc commit 6f9d982

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

tests/system/analyze/AnalysisTestCase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
methods (TestClassSetup)
99

1010
function useMATLABR2024bOrAbove(testCase)
11-
testCase.assumeTrue(matlabRelease().Release >= "R2024b", "Only MATLAB older than R2024b is supported for this test.");
11+
testCase.assumeFalse(isMATLABReleaseOlderThan("R2024b"), "Only MATLAB R2024b or later is supported for this test.");
1212
end
1313
end
1414

tests/system/app/AppTestCase.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
methods (TestClassSetup)
55

66
function useMATLABR2024bOrAbove(testCase)
7-
testCase.assumeTrue(matlabRelease().Release >= "R2024b", "Only MATLAB older than R2024b is supported for this test.");
7+
testCase.assumeFalse(isMATLABReleaseOlderThan("R2024b"), "Only MATLAB R2024b or later is supported for this test.");
88
end
99
end
1010

tests/system/package/tToolbox.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
Version = {"1.0.1", "2.3.1"}
1010
end
1111

12+
methods (TestClassSetup)
13+
14+
function useMATLABR2025aOrAbove(testCase)
15+
testCase.assumeFalse(isMATLABReleaseOlderThan("R2025a"), "Only MATLAB R2025a or later is supported for this test.");
16+
end
17+
end
18+
1219
methods (Test)
1320

1421
% Test that toolbox can be packaged.

0 commit comments

Comments
 (0)