Skip to content

Commit b3fa3bc

Browse files
committed
ci: cleanup platform detection
1 parent 4f01d1c commit b3fa3bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ make check-bootstrap
114114

115115
# Display the CPU and memory information. This helps us know why the CI timing
116116
# is fluctuating.
117-
if isOSX; then
117+
if isMacOS; then
118118
system_profiler SPHardwareDataType || true
119119
sysctl hw || true
120120
ncpus=$(sysctl -n hw.ncpu)

src/ci/shared.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ function isCI {
3030
[ "$CI" = "true" ] || [ "$TF_BUILD" = "True" ]
3131
}
3232

33-
function isOSX {
33+
function isMacOS {
3434
[ "$AGENT_OS" = "Darwin" ]
3535
}
3636

37-
function isMacOS {
38-
isOSX
37+
function isWindows {
38+
[ "$AGENT_OS" = "Windows_NT" ]
3939
}
4040

41-
function isWindows {
42-
[ "$AGENT_OS" = "Windows_NT" ]
41+
function isLinux {
42+
[ "$AGENT_OS" = "Linux" ]
4343
}
4444

4545
function getCIBranch {

0 commit comments

Comments
 (0)