Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions dev/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_error_codes(err_code_file):


def exit_from_command_with_retcode(cmd, retcode):
print "[error] running", cmd, "; received return code", retcode
print "[error] running '", " ".join(cmd), "'; received return code", retcode
sys.exit(int(os.environ.get("CURRENT_BLOCK", 255)))


Expand Down Expand Up @@ -231,7 +231,7 @@ def get_hadoop_profiles(hadoop_version):
sys.exit(int(os.environ.get("CURRENT_BLOCK", 255)))


def get_build_profiles(hadoop_version="hadoop2.3",
def get_build_profiles(hadoop_version,
enable_base_profiles=True,
enable_hive_profiles=False,
enable_doc_profiles=False):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to remove the doc_profiles then you'll also have to remove this since it's now unused.

Expand All @@ -240,7 +240,6 @@ def get_build_profiles(hadoop_version="hadoop2.3",

base_profiles = ["-Pkinesis-asl"]
hive_profiles = ["-Phive", "-Phive-thriftserver"]
doc_profiles = []
hadoop_profiles = get_hadoop_profiles(hadoop_version)

build_profiles = hadoop_profiles
Expand All @@ -251,9 +250,6 @@ def get_build_profiles(hadoop_version="hadoop2.3",
if enable_hive_profiles:
build_profiles += hive_profiles

if enable_doc_profiles:
build_profiles += doc_profiles

return build_profiles


Expand Down Expand Up @@ -355,6 +351,7 @@ def identify_changed_modules(test_env):
changed_core_files = set(changed_files).difference(top_level_project_files)

if changed_core_files:
print "[info] Detected changes in core Spark. Will run the full test suite."
changed_modules.add("CORE")
if sql_files:
print "[info] Detected changes in SQL. Will run Hive test suite."
Expand Down