File tree Expand file tree Collapse file tree 2 files changed +17
-26
lines changed Expand file tree Collapse file tree 2 files changed +17
-26
lines changed Original file line number Diff line number Diff line change @@ -82,31 +82,24 @@ export SBT_MAVEN_PROFILES_ARGS="$SBT_MAVEN_PROFILES_ARGS -Pkinesis-asl"
8282if [ -n " $AMPLAB_JENKINS " ]; then
8383 git fetch origin master:master
8484
85- # AMP_JENKINS_PRB indicates if the current build is a pull request build.
86- if [ -n " $AMP_JENKINS_PRB " ]; then
87- # It is a pull request build.
88- sql_diffs=$(
89- git diff --name-only master \
90- | grep -e " ^sql/" -e " ^bin/spark-sql" -e " ^sbin/start-thriftserver.sh"
91- )
92-
93- non_sql_diffs=$(
94- git diff --name-only master \
95- | grep -v -e " ^sql/" -e " ^bin/spark-sql" -e " ^sbin/start-thriftserver.sh"
96- )
97-
98- if [ -n " $sql_diffs " ]; then
99- echo " [info] Detected changes in SQL. Will run Hive test suite."
100- _RUN_SQL_TESTS=true
101-
102- if [ -z " $non_sql_diffs " ]; then
103- echo " [info] Detected no changes except in SQL. Will only run SQL tests."
104- _SQL_TESTS_ONLY=true
105- fi
106- fi
107- else
108- # It is a regular build. We should run SQL tests.
85+ sql_diffs=$(
86+ git diff --name-only master \
87+ | grep -e " ^sql/" -e " ^bin/spark-sql" -e " ^sbin/start-thriftserver.sh"
88+ )
89+
90+ non_sql_diffs=$(
91+ git diff --name-only master \
92+ | grep -v -e " ^sql/" -e " ^bin/spark-sql" -e " ^sbin/start-thriftserver.sh"
93+ )
94+
95+ if [ -n " $sql_diffs " ]; then
96+ echo " [info] Detected changes in SQL. Will run Hive test suite."
10997 _RUN_SQL_TESTS=true
98+
99+ if [ -z " $non_sql_diffs " ]; then
100+ echo " [info] Detected no changes except in SQL. Will only run SQL tests."
101+ _SQL_TESTS_ONLY=true
102+ fi
110103 fi
111104fi
112105
Original file line number Diff line number Diff line change 185185
186186# run tests
187187{
188- # Marks this build is a pull request build.
189- export AMP_JENKINS_PRB=true
190188 timeout " ${TESTS_TIMEOUT} " ./dev/run-tests
191189 test_result=" $? "
192190
You can’t perform that action at this time.
0 commit comments