From 5ae63c71fcbabad8ad5a3a13d7fc19493c1cc1c5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 30 Aug 2019 14:19:32 +0200 Subject: try to get version of benchmark requirements --- src/benchmark.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/benchmark.py') diff --git a/src/benchmark.py b/src/benchmark.py index ecac9d9..d94cc52 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -98,7 +98,8 @@ class Benchmark: default_results = {"args": self.args, "allocators": self.allocators, - "facts": {"libcs": {}}} + "facts": {"libcs": {}, + "versions": {}}} default_results.update({alloc: {} for alloc in self.allocators}) if not hasattr(self, "results"): @@ -189,6 +190,7 @@ class Benchmark: exe = src.util.find_cmd(r) if exe is not None: self.results["facts"]["libcs"][r] = src.facter.libc_ver(executable=exe) + self.results["facts"]["versions"][r] = src.facter.exec_ver(exe) else: raise Exception("Requirement: {} not found".format(r)) -- cgit v1.2.3