Initialize a chrome instance within the longevity tracker
Initialize a chrome instance within the longevity tracker to ensure that an auto-launched
Kiosk app is running before the metrics are collected.
The Kiosk longevity pool should be run daily at 10:00 AM.
BUG=None
TEST=None
Change-Id: I46ca7175f4142afd6146d29abfbbe1bba54bb2e2
Reviewed-on: https://chromium-review.googlesource.com/354134
Commit-Ready: Krishna Gavini <krishnargv@chromium.org>
Tested-by: Krishna Gavini <krishnargv@chromium.org>
Reviewed-by: Harpreet Grewal <harpreet@chromium.org>
diff --git a/client/site_tests/longevity_Tracker/longevity_Tracker.py b/client/site_tests/longevity_Tracker/longevity_Tracker.py
index f8df20e..87b5377 100755
--- a/client/site_tests/longevity_Tracker/longevity_Tracker.py
+++ b/client/site_tests/longevity_Tracker/longevity_Tracker.py
@@ -4,9 +4,10 @@
import csv, logging, os, shutil, time
+from autotest_lib.client.common_lib.cros import chrome
from autotest_lib.client.bin import site_utils, test, utils
-TEST_DURATION = 82800 # Duration of test (23 hrs) in seconds.
+TEST_DURATION = 72000 # Duration of test (20 hrs) in seconds.
SAMPLE_INTERVAL = 60 # Length of measurement samples in seconds.
REPORT_INTERVAL = 3600 # Interval between perf data reports in seconds.
STABILIZATION_DURATION = 60 # Time for test stabilization in seconds.
@@ -273,9 +274,14 @@
if os.path.isfile(EXIT_FLAG_FILE):
os.remove(EXIT_FLAG_FILE)
- # Run a single 23-hour test cycle.
+ # Run a single 20-hour test cycle.
median_metrics = {'cpu': '0', 'mem': '0', 'temp': '0'}
- median_metrics = self._run_test_cycle()
+ with chrome.Chrome(clear_enterprise_policy=False,
+ dont_override_profile=True,
+ disable_gaia_services=False,
+ disable_default_apps=False,
+ auto_login=False) as cr:
+ median_metrics = self._run_test_cycle()
# Write metrics to keyval file for AutoTest results.
self._write_perf_keyvals(median_metrics)
diff --git a/suite_scheduler.ini b/suite_scheduler.ini
index 7cba8ca..54353f1 100644
--- a/suite_scheduler.ini
+++ b/suite_scheduler.ini
@@ -186,8 +186,8 @@
pool: suites
[Kiosk]
-run_on: weekly
-day: 2
+run_on: nightly
+hour: 9
suite: longevity
branch_specs: ==tot
pool: longevity