Skip to content

Commit fe04d45

Browse files
committed
[[ Tests ]] Add jvm check and use directly in sb test
1 parent e2ee92e commit fe04d45

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/_testlib.livecodescript

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,12 +631,14 @@ private function __MeetsRequirements pRequirement, pOptions
631631
return __MeetsRequirements("desktop")
632632
end if
633633
return the platform is not "HTML5"
634+
case "jvm"
635+
return __MeetsRequirements("platform", "MacOS,Linux")
634636
end switch
635637
return true
636638
end __MeetsRequirements
637639

638640
command TestEnsureJVM
639-
TestSkipIfNot "platform", "MacOS,Linux"
641+
TestSkipIfNot "jvm"
640642

641643
if $JAVA_HOME is empty then
642644
local tPath

tests/ide-support/standalonebuilder/java.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
1818

1919
local sSupportStack, sExtensionName
2020
on TestSetup
21-
TestEnsureJVM
21+
TestSkipIfNot "jvm"
2222
put "com.livecode.library.javatest" into sExtensionName
2323
__InstallExtension sExtensionName
2424

0 commit comments

Comments
 (0)