[AWARE] Test-wide configuration for power & startup offset
Add global configuration to all tests - passed through the
configuration file:
1. Power state: sets the power state of the discovery window (DW)
configuration. May be overriden in the test itself.
2. Synchronized start-up may result in longer discovery as both
devices stop scanning at the same time, form their own cluster,
and don't scan until much later. Provide a global configuration
of an offset startup time.
- Setting can be overriden in specific tests.
- A test will be added to measure its impact
- All tests should be run for 0 offset (same startup) as well to
measure impact.
Bug: 31940045
Test: increases pass rate of tests
Change-Id: I1be35b8285d01b1a0d806f9f5e68a618a4631ff1
diff --git a/acts/tests/google/wifi/aware/functional/DiscoveryTest.py b/acts/tests/google/wifi/aware/functional/DiscoveryTest.py
index 033f051..76af4a2 100644
--- a/acts/tests/google/wifi/aware/functional/DiscoveryTest.py
+++ b/acts/tests/google/wifi/aware/functional/DiscoveryTest.py
@@ -147,6 +147,7 @@
# Publisher+Subscriber: attach and wait for confirmation
p_id = p_dut.droid.wifiAwareAttach(False)
autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
+ time.sleep(self.device_startup_offset)
s_id = s_dut.droid.wifiAwareAttach(False)
autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)
@@ -489,6 +490,7 @@
p_id = p_dut.droid.wifiAwareAttach(False)
autils.wait_for_event(p_dut, aconsts.EVENT_CB_ON_ATTACHED)
+ time.sleep(self.device_startup_offset)
s_id = s_dut.droid.wifiAwareAttach(False)
autils.wait_for_event(s_dut, aconsts.EVENT_CB_ON_ATTACHED)