Skip to content
Snippets Groups Projects
Commit e813d132 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

runner: minor variable renaming

This prepare a wider refactoring.
parent 01ac3c41
No related branches found
No related tags found
1 merge request!12runner: factor out some part of the benchmark class
......@@ -125,7 +125,7 @@
self.cwd = get_var(key)
def run_one(bin_env_path, data_env_path, benchmark, result):
def run_one(bin_env_path, data_env_path, benchmark_path, result):
result_data = {}
result_data['run'] = {}
result_data['run']["timestamp"] = time.time()
......@@ -140,6 +140,6 @@
data_env_data = poulpe.get_data(data_env_desc)
result_data['data-env-vars'] = data_env_data['data-env-vars']
benchmark_data = get_benchmark(benchmark)
assert benchmark_data is not None, benchmark
benchmark = get_benchmark(benchmark_path)
assert benchmark is not None, benchmark_path
result_data['benchmark'] = {}
......@@ -145,8 +145,8 @@
result_data['benchmark'] = {}
result_data['benchmark']['name'] = benchmark_data.name
variants = benchmark_data.selected_variants
result_data['benchmark']['name'] = benchmark.name
variants = benchmark.selected_variants
if variants:
result_data['benchmark']['variants'] = variants
# building the benchmark scenarion, that will likely changes often and quickly
......@@ -148,9 +148,9 @@
if variants:
result_data['benchmark']['variants'] = variants
# building the benchmark scenarion, that will likely changes often and quickly
cmd = SimpleCommand(benchmark_data)
cmd = SimpleCommand(benchmark)
cmd.apply_data_env(data_env_data)
r = _time_command(bin_env_path, data_env_path, cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment