Skip to content

Commit cae642f

Browse files
authored
Skip installing cached packages when running the testsuite (#9524)
- The installation of cached packages doesn't work correctly when running the testsuite, but it's not needed anyway so disable it.
1 parent b849253 commit cae642f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

OMCompiler/Compiler/Script/PackageManagement.mo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,10 @@ protected
527527
JSON obj, libs_obj, lib_obj, versions_obj;
528528
list<String> libs;
529529
algorithm
530-
if not listEmpty(System.subDirectories(getUserLibraryPath())) then
531-
// Return if the user's library directory isn't empty.
530+
if not listEmpty(System.subDirectories(getUserLibraryPath())) or Testsuite.isRunning() then
531+
// Return if the user's library directory isn't empty, or if we're running
532+
// e.g. rtest in which case the path might not be correct but we don't care
533+
// and don't want any extra output.
532534
return;
533535
end if;
534536

0 commit comments

Comments
 (0)