summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-11-15 11:35:17 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-11-15 14:43:19 -0800
commit1619c37a88770c9c0d8467939e34ffd337241c14 (patch)
tree917ba9b7262d5e084c91d19a585d9818740a37f2 /framework
parent1e5dd0ea2d473012a6aa14f827f1cee58deeefd5 (diff)
framework/profile: don't copy.deepcopy when copying profiles
This reduces memory consumption by a lot (about 60% on my system), which fixes some tests that fail sporadically on low memory systems. bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98725 Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Tested-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/profile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/profile.py b/framework/profile.py
index 23abc6d41..78b3a2d67 100644
--- a/framework/profile.py
+++ b/framework/profile.py
@@ -297,12 +297,11 @@ class TestProfile(object):
"""Create a copy of the TestProfile.
This method creates a copy with references to the original instance
- (using copy.copy), except for the test_list attribute, which is copied
- using copy.deepcopy. This allows profiles to be "subclassed" by other
+ using copy.copy. This allows profiles to be "subclassed" by other
profiles, without modifying the original.
"""
new = copy.copy(self)
- new.test_list = copy.deepcopy(self.test_list)
+ new.test_list = copy.copy(self.test_list)
new.forced_test_list = copy.copy(self.forced_test_list)
new.filters = copy.copy(self.filters)
return new