aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-13 11:03:05 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-13 11:03:05 +0200
commit8ccad6b29c15150e643c2302bd751d16aa294874 (patch)
treeec01e0e05720f4df3259081a6631271950e431fb /bench.py
parenta2980bb14f909fbba31374bc203c4d530bf3fff0 (diff)
downloadallocbench-8ccad6b29c15150e643c2302bd751d16aa294874.tar.gz
allocbench-8ccad6b29c15150e643c2302bd751d16aa294874.zip
move VERBOSITY from globalvars to util
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bench.py b/bench.py
index 925159b..7cb93f8 100755
--- a/bench.py
+++ b/bench.py
@@ -31,6 +31,7 @@ from allocbench.benchmark import get_benchmark_object
from allocbench.directories import get_current_result_dir, set_current_result_dir
import allocbench.facter as facter
import allocbench.globalvars
+import allocbench.util
from allocbench.util import run_cmd
from allocbench.util import print_status, print_warn, print_error
from allocbench.util import print_info, print_info2, print_debug
@@ -127,14 +128,14 @@ def main():
# 2: Print all infos
# 3: Print everything
if args.verbose:
- allocbench.globalvars.VERBOSITY = args.verbose
+ allocbench.util.VERBOSITY = args.verbose
print_info2("Arguments:", args)
# Prepare allocbench
print_status("Building allocbench ...")
make_cmd = ["make"]
- if allocbench.globalvars.VERBOSITY < 2:
+ if allocbench.util.VERBOSITY < 2:
make_cmd.append("-s")
run_cmd(make_cmd, output_verbosity=1)