summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-04-02 15:01:37 +0200
committerAndreas Jaeger <aj@suse.com>2020-04-02 15:05:26 +0200
commit4445f3296b39b37229cdb7cd152ea06478a13d61 (patch)
treeb3cc14ca04fdba154c9e3ab53d856f82c45aa8d6 /benchmark
parentfd21b6e096ea2ef718101c62b0e341db0199b5b7 (diff)
downloadoslo-rootwrap-4445f3296b39b37229cdb7cd152ea06478a13d61.tar.gz
Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Remove hacking and friends from lower-constraints, they are not needed for installation. Change-Id: If75153300f07e6d1c5bf433af35a0dd4d98e6c7f
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/benchmark.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/benchmark/benchmark.py b/benchmark/benchmark.py
index 2009eda..6788373 100644
--- a/benchmark/benchmark.py
+++ b/benchmark/benchmark.py
@@ -63,6 +63,7 @@ def run_one(runner, cmd):
assert code == 0, "Command failed"
return __inner
+
runners = [
("{0}", run_plain),
("sudo {0}", run_sudo),
@@ -109,5 +110,6 @@ def main():
atexit.register(run_sudo, ["ip", "netns", "delete", "bench_ns"])
run_bench('ip netns exec bench_ns ip a'.split(), runners[1:])
+
if __name__ == "__main__":
main()