Skip to content

Commit

Permalink
Use 'SystemUtils' to identify test OS (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad authored Feb 28, 2024
1 parent 2fb0091 commit 1e0b4e1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.labkey.test.tests.panoramapublic;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.SystemUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.junit.After;
Expand Down Expand Up @@ -91,9 +92,7 @@ protected String getProjectName()
// The SQLite driver for the Chromatogram library code chokes on paths with certain characters on OSX. We don't have
// any real deployments on OSX, so just avoid using those characters on dev machines and rely on TeamCity
// to keep things happy on the platforms we actually use on production
String osName = System.getProperty("os.name").toLowerCase();
boolean isMacOs = osName.startsWith("mac os x");
if (isMacOs)
if (SystemUtils.IS_OS_MAC)
{
return baseName;
}
Expand Down

0 comments on commit 1e0b4e1

Please sign in to comment.