diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-03-22 20:19:07 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-03-22 20:19:07 +0100 |
| commit | 6f172e582e67ba6b9d93395b0f7cc576281b86b0 (patch) | |
| tree | b6602932590ffcfee60e0d5868217729f2624cc0 /src | |
| parent | e4af49a2745d68964028809a5dc1c1dc8c16d76c (diff) | |
| download | allocbench-6f172e582e67ba6b9d93395b0f7cc576281b86b0.tar.gz allocbench-6f172e582e67ba6b9d93395b0f7cc576281b86b0.zip | |
fix some Exceptions
Diffstat (limited to 'src')
| -rw-r--r-- | src/benchmark.py | 2 | ||||
| -rw-r--r-- | src/mysql.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark.py b/src/benchmark.py index 5e32c89..956e4b5 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -252,7 +252,7 @@ class Benchmark (object): print() print_debug("Stdout:\n" + res.stdout) print_debug("Stderr:\n" + res.stderr) - raise Exception("{} failed with exit code {} for {}".format(actual_cmd, res.returncode), tname) + raise Exception("{} failed with exit code {} for {}".format(actual_cmd, res.returncode, tname)) if "ERROR: ld.so" in res.stderr: print() diff --git a/src/mysql.py b/src/mysql.py index fa1c81c..e3f1f0f 100644 --- a/src/mysql.py +++ b/src/mysql.py @@ -126,7 +126,7 @@ class Benchmark_MYSQL(Benchmark): print_debug("Stdout:", p.stdout, file=sys.stderr) print_debug("Stderr:", p.stderr, file=sys.stderr) self.terminate_server() - raise("Preparing test tables failed with:", p.returncode) + raise Exception("Preparing test tables failed with:", p.returncode) self.terminate_server() |
