MCPcopy Create free account
hub / github.com/apache/impala / validate_workloads

Function validate_workloads

bin/load-data.py:121–126  ·  view source on GitHub ↗
(all_workloads, workloads)

Source from the content-addressed store, hash-verified

119 if os.path.isdir(os.path.join(workload_dir, subdir))]
120
121def validate_workloads(all_workloads, workloads):
122 for workload in workloads:
123 if workload not in all_workloads:
124 LOG.error('Workload \'%s\' not found in workload directory' % workload)
125 LOG.error('Available workloads: ' + ', '.join(all_workloads))
126 sys.exit(1)
127
128def exec_cmd(cmd, error_msg=None, exit_on_error=True, out_file=None):
129 """Run the given command in the shell returning whether the command

Callers 1

mainFunction · 0.85

Calls 2

errorMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected