commit | 2c7812ce1e1d869eb3dfa0e59bf96b386d95c0f1 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Thu Dec 27 17:52:23 2012 -0800 |
committer | Rich Lane <rich.lane@bigswitch.com> | Thu Dec 27 17:52:23 2012 -0800 |
tree | 68654d4d40452b9aa2137047180ce496eab52998 | |
parent | e1b8da9513d907758fef264839c56fab09761c95 [diff] [blame] |
use a single dataplane instance for all tests Creating and destroying dataplane instances was taking about 1/3 of the total runtime.
diff --git a/src/python/oftest/__init__.py b/src/python/oftest/__init__.py index c1cbb78..3974e08 100644 --- a/src/python/oftest/__init__.py +++ b/src/python/oftest/__init__.py
@@ -3,3 +3,7 @@ # Global config dictionary # Populated by oft. config = {} + +# Global DataPlane instance used by all tests. +# Populated by oft. +dataplane_instance = None