Skip to content

Commit 4bc4fae

Browse files
committed
ci: cleanup platform detection
1 parent 102dc3d commit 4bc4fae

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
@@ -117,7 +117,7 @@ make check-bootstrap
117117

118118
# Display the CPU and memory information. This helps us know why the CI timing
119119
# is fluctuating.
120-
if isOSX; then
120+
if isMacOS; then
121121
system_profiler SPHardwareDataType || true
122122
sysctl hw || true
123123
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)