diff options
author | Andreas Jaeger <aj@suse.com> | 2020-04-02 15:01:37 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2020-04-02 15:05:26 +0200 |
commit | 4445f3296b39b37229cdb7cd152ea06478a13d61 (patch) | |
tree | b3cc14ca04fdba154c9e3ab53d856f82c45aa8d6 /benchmark | |
parent | fd21b6e096ea2ef718101c62b0e341db0199b5b7 (diff) | |
download | oslo-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.py | 2 |
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() |