From 4780c5923843217a4a1ce2581e87071e3dc0da56 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Wed, 28 Dec 2022 18:40:18 -0800 Subject: [PATCH] fix os detection --- .../java/com/azure/core/test/utils/TestProxyDownloader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestProxyDownloader.java b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestProxyDownloader.java index 90b22a1f64798..886b537bfbe2a 100644 --- a/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestProxyDownloader.java +++ b/sdk/core/azure-core-test/src/main/java/com/azure/core/test/utils/TestProxyDownloader.java @@ -173,9 +173,11 @@ private static class PlatformInfo { } else if (osName.contains("linux")) { platform = "linux"; extension = "tar.gz"; - } else { + } else if (osName.contains("mac os x")) { platform = "osx"; extension = "zip"; + } else { + throw new RuntimeException("unexpected osName " + osName); } String arch = System.getProperty("os.arch").toLowerCase(Locale.ROOT); if (arch.contains("amd64")) {