Skip to content

Commit 165f52f

Browse files
committed
[HOTFIX] [PROJECT-INFRA] Fix bug in dev/run-tests for MLlib-only PRs
1 parent d1069cb commit 165f52f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dev/run-tests.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,20 +391,20 @@ def run_scala_tests_maven(test_profiles):
391391

392392
def run_scala_tests_sbt(test_modules, test_profiles):
393393
# declare the variable for reference
394-
sbt_test_goals = None
394+
sbt_test_goals = []
395395

396396
if "ALL" in test_modules:
397397
sbt_test_goals = ["test"]
398398
else:
399399
# if we only have changes in SQL, MLlib, Streaming, or GraphX then build
400400
# a custom test list
401401
if "SQL" in test_modules and "CORE" not in test_modules:
402-
sbt_test_goals = ["catalyst/test",
403-
"sql/test",
404-
"hive/test",
405-
"hive-thriftserver/test",
406-
"mllib/test",
407-
"examples/test"]
402+
sbt_test_goals += ["catalyst/test",
403+
"sql/test",
404+
"hive/test",
405+
"hive-thriftserver/test",
406+
"mllib/test",
407+
"examples/test"]
408408
if "MLLIB" in test_modules and "CORE" not in test_modules:
409409
sbt_test_goals += ["mllib/test", "examples/test"]
410410
if "STREAMING" in test_modules and "CORE" not in test_modules:

0 commit comments

Comments
 (0)