diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 17:59:23 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-11 17:59:23 +0200 |
| commit | 84374b4b4e41c4bb7896092c10098b5e6b5f68c1 (patch) | |
| tree | e406322fb73570d5e1fbf5104326a8a8be2d2b0f /src/benchmarks/mysql.py | |
| parent | c36a2b00e6a487f988a7286ccb9c8968a937f30c (diff) | |
| download | allocbench-84374b4b4e41c4bb7896092c10098b5e6b5f68c1.tar.gz allocbench-84374b4b4e41c4bb7896092c10098b5e6b5f68c1.zip | |
explicitly collect binary versions
There is no generic way to retrieve the version of a binary.
Not everyone followes GNU cli guidelines and supports "--version".
The larson benchmark for example reads input from stdin when
started with "larson --version" blocking the Benchmark.prepare() call.
Diffstat (limited to 'src/benchmarks/mysql.py')
| -rw-r--r-- | src/benchmarks/mysql.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py index a47873b..e71038f 100644 --- a/src/benchmarks/mysql.py +++ b/src/benchmarks/mysql.py @@ -28,6 +28,7 @@ import sys import numpy as np from src.benchmark import Benchmark +import src.facter from src.util import print_status, print_debug, print_info2 TESTDIR = os.path.join(os.getcwd(), "mysql_test") @@ -72,6 +73,10 @@ class BenchmarkMYSQL(Benchmark): def prepare(self): super().prepare() + # save mysqld and sysbench versions + for exe in self.requirements: + self.results["facts"]["versions"][exe] = src.facter.exe_version(exe, "--version") + # Setup Test Environment if not os.path.exists("mysql_test"): print_status("Prepare mysqld directory and database") |
