Skip to content

Commit

Permalink
Release 2.2.0 test
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Jan 22, 2024
1 parent 1302081 commit a277887
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion userbenchmark/release-test/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,17 @@ def run_benchmark(run_scripts, work_dir):
run_script_path = work_dir.joinpath(run_key, "run.sh")
# run the benchmark
print(f"Running benchmark {run_key} ...")
subprocess.check_call(["bash", str(run_script_path)])
try:
cmnd = f"bash {str(run_script_path)}"
output = subprocess.check_output(
cmnd, stderr=subprocess.STDOUT, shell=True, timeout=3,
universal_newlines=True)
except subprocess.CalledProcessError as exc:
print("Status : FAIL", exc.returncode, exc.output)
else:
print("Output: \n{}\n".format(output))

# subprocess.check_call(["bash", str(run_script_path)])

def get_config(config_name: str):
if os.path.exists(os.path.join(DEFAULT_CONFIG_PATH, config_name)):
Expand Down

0 comments on commit a277887

Please sign in to comment.