File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ build_scheme ()
118
118
echo " *** Building and testing $scheme ..."
119
119
echo
120
120
121
- local sdkflag=
121
+ local sdkflags=()
122
122
local action=test
123
123
124
124
# Determine whether we can run unit tests for this target.
@@ -129,17 +129,17 @@ build_scheme ()
129
129
if [ " $awkstatus " -eq " 1" ]
130
130
then
131
131
# SDK not found, try for iphonesimulator.
132
- sdkflag= ' -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 5"'
132
+ sdkflags=( -sdk iphonesimulator -destination " platform=iOS Simulator,name=iPhone 5" )
133
133
134
134
# Determine whether the unit tests will run with iphonesimulator
135
- run_xctool " $sdkflag " -scheme " $scheme " run-tests | parse_build
135
+ run_xctool " ${sdkflags[@]} " -scheme " $scheme " run-tests | parse_build
136
136
137
137
awkstatus=$?
138
138
139
139
if [ " $awkstatus " -ne " 0" ]
140
140
then
141
141
# Unit tests will not run on iphonesimulator.
142
- sdkflag= " "
142
+ sdkflags=()
143
143
fi
144
144
fi
145
145
@@ -149,7 +149,7 @@ build_scheme ()
149
149
action=build
150
150
fi
151
151
152
- run_xctool $sdkflag -scheme " $scheme " $action
152
+ run_xctool " ${sdkflags[@]} " -scheme " $scheme " $action
153
153
}
154
154
155
155
export -f build_scheme
You can’t perform that action at this time.
0 commit comments