Skip to content

Commit 7fa358a

Browse files
committed
safari latest handling
1 parent 7f3be7e commit 7fa358a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

mac/device-machine-allocation.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ WEB_ALL=(
3939
"OS X|Chrome"
4040
"OS X|Safari"
4141
"OS X|Chrome"
42-
"OS X|Safari"
4342
"OS X|Firefox"
44-
"OS X|Safari"
4543
# Tier 1
4644
"ios|iPhone 1[234567]*"
4745
"android|Samsung Galaxy S*"
@@ -126,16 +124,24 @@ pick_terminal_devices() {
126124
else
127125
bVersionLiteral=""
128126
fi
129-
bVersion="latest$bVersionLiteral"
127+
128+
bVersion="latest$bVersionLiteral"
129+
130+
if [[ "$suffixEntry" == "Safari" ]]; then
131+
bVersion="latest"
132+
else
133+
bVersion=$(( hardcodedBVersion-i ))
134+
fi
135+
130136
if [[ "$platformsListContentFormat" == "yaml" ]]; then
131137
if [[ "$prefixEntry" == "android" || "$prefixEntry" == "ios" ]]; then
132138
yaml+=" - platformName: $prefixEntry
133139
deviceName: $suffixEntry
134140
"
135141
else
136-
yaml+=" - osVersion: $prefixEntry
142+
yaml+=" - os: $prefixEntry
137143
browserName: $suffixEntry
138-
browserVersion: $(( hardcodedBVersion-i ))
144+
browserVersion: $bVersion
139145
"
140146
fi
141147

0 commit comments

Comments
 (0)