Merge "Clear undesired test attributes in teardown test" am: 901c7ba75f am: 3f267e021a
am: d4a1e411ba
Test: None
Bug: 65563975
Change-Id: Iabf1a6fc7b33bcb96f032a59aca8e38d9c125452
(cherry picked from commit 15a27f0c11ed92437140b0608dc29b216bde3378)
diff --git a/acts/framework/acts/test_utils/power/PowerWiFiBaseTest.py b/acts/framework/acts/test_utils/power/PowerWiFiBaseTest.py
index 167e73f..635c8b5 100644
--- a/acts/framework/acts/test_utils/power/PowerWiFiBaseTest.py
+++ b/acts/framework/acts/test_utils/power/PowerWiFiBaseTest.py
@@ -56,10 +56,13 @@
self.pkt_sender.stop_sending(ignore_status=True)
if hasattr(self, 'brconfigs'):
self.access_point.bridge.teardown(self.brconfigs)
+ delattr(self, 'brconfigs')
if hasattr(self, 'brconfigs_main'):
self.access_point_main.bridge.teardown(self.brconfigs_main)
+ delattr(self, 'brconfigs_main')
if hasattr(self, 'brconfigs_aux'):
self.access_point_aux.bridge.teardown(self.brconfigs_aux)
+ delattr(self, 'brconfigs_aux')
if hasattr(self, 'access_points'):
for ap in self.access_points:
ap.close()