File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -141,14 +141,17 @@ echo "========================================================================="
141
141
142
142
{
143
143
# If the Spark SQL tests are enabled, run the tests with the Hive profiles enabled.
144
+ # This must be a single argument, as it is.
144
145
if [ -n " $_RUN_SQL_TESTS " ]; then
145
146
SBT_MAVEN_PROFILES_ARGS=" $SBT_MAVEN_PROFILES_ARGS -Phive"
146
147
fi
147
148
148
149
if [ -n " $_SQL_TESTS_ONLY " ]; then
149
- SBT_MAVEN_TEST_ARGS=" catalyst/test sql/test hive/test"
150
+ # This must be an array of individual arguments. Otherwise, having one long string
151
+ # + will be interpreted as a single test, which doesn't work.
152
+ SBT_MAVEN_TEST_ARGS=(" catalyst/test" " sql/test" " hive/test" )
150
153
else
151
- SBT_MAVEN_TEST_ARGS=" test"
154
+ SBT_MAVEN_TEST_ARGS=( " test" )
152
155
fi
153
156
154
157
echo " [info] Running Spark tests with these arguments: $SBT_MAVEN_PROFILES_ARGS $SBT_MAVEN_TEST_ARGS "
@@ -159,7 +162,7 @@ echo "========================================================================="
159
162
# QUESTION: Why doesn't 'yes "q"' work?
160
163
# QUESTION: Why doesn't 'grep -v -e "^\[info\] Resolving"' work?
161
164
echo -e " q\n" \
162
- | sbt/sbt " $SBT_MAVEN_PROFILES_ARGS " " $SBT_MAVEN_TEST_ARGS " \
165
+ | sbt/sbt " $SBT_MAVEN_PROFILES_ARGS " " ${ SBT_MAVEN_TEST_ARGS[@]} " \
163
166
| grep -v -e " info.*Resolving" -e " warn.*Merging" -e " info.*Including"
164
167
}
165
168
You can’t perform that action at this time.
0 commit comments