diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-19 15:23:02 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-19 15:40:24 +0200 |
| commit | 37ab5ec2e239801d50f510ec34c77339a85ee95b (patch) | |
| tree | 79b54efb464dcf2282f486c9aa4ffe2ffe44ee5d | |
| parent | 033eb559d85a80bb7dd90ec4a0360504658560a6 (diff) | |
| download | allocbench-37ab5ec2e239801d50f510ec34c77339a85ee95b.tar.gz allocbench-37ab5ec2e239801d50f510ec34c77339a85ee95b.zip | |
[benchmark] add type hint for result of a benchmark run
| -rw-r--r-- | allocbench/benchmark.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/allocbench/benchmark.py b/allocbench/benchmark.py index 0a03a78..53430cb 100644 --- a/allocbench/benchmark.py +++ b/allocbench/benchmark.py @@ -627,6 +627,10 @@ class Benchmark: os.chdir(run_dir) logger.debug("\nChange cwd to: %s", run_dir) + # We only check returncode, stderr and stderr which are available + # in CompletedProcess and CalledProcessError. + res: Optional[Union[subprocess.CompletedProcess, + subprocess.CalledProcessError]] = None try: res = run_cmd(argv, capture=True) except subprocess.CalledProcessError as err: |
