aboutsummaryrefslogtreecommitdiff
path: root/summarize.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-12-13 16:14:37 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-12-14 01:06:24 +0100
commit0980de3da64e273a363dace79e56345bc4ed2dbc (patch)
tree731e4790728176038c70cd6a409540182969f5b1 /summarize.py
parentabc685736453ae866a7dd450a4ef4f30528f845f (diff)
downloadallocbench-0980de3da64e273a363dace79e56345bc4ed2dbc.tar.gz
allocbench-0980de3da64e273a363dace79e56345bc4ed2dbc.zip
move allocbench_version to facter and make the facts a global variable of facter.py
Diffstat (limited to 'summarize.py')
-rwxr-xr-xsummarize.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/summarize.py b/summarize.py
index 6681137..d974fb2 100755
--- a/summarize.py
+++ b/summarize.py
@@ -27,7 +27,7 @@ import sys
import src.facter
import src.globalvars
from src.util import print_status, print_debug, print_error
-from src.util import print_license_and_exit, print_version_and_exit
+from src.util import print_license_and_exit
def specific_summary(bench, sum_dir, allocators):
@@ -95,7 +95,8 @@ def main():
print_license_and_exit()
if "--version" in sys.argv:
- print_version_and_exit()
+ print(src.facter.allocbench_version())
+ exit(0)
parser = argparse.ArgumentParser(description="Summarize allocbench results in allocator sets")
parser.add_argument("results", help="path to results", type=str)