Reboot device before CUJ test

BUG=b:464971879
TEST=test_that $DUT tast.cuj-weekly-0

Change-Id: I14931e4e1eedd6c1442238308cc9c67479eeb0b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/7237874
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Terry Yan <yichiyan@google.com>
Commit-Queue: Edgar Chang <edgar.chang@cienet.com>
Reviewed-by: Vincent Chiang <vincentchiang@chromium.org>
Tested-by: Edgar Chang <edgar.chang@cienet.com>
diff --git a/server/site_tests/tast/control.cuj-weekly-0 b/server/site_tests/tast/control.cuj-weekly-0
index 9baaace..7bec1c2 100644
--- a/server/site_tests/tast/control.cuj-weekly-0
+++ b/server/site_tests/tast/control.cuj-weekly-0
@@ -26,6 +26,8 @@
     job.run_test('tast',
                  host=hosts.create_host(machine),
                  test_exprs=['("group:cuj" && cuj_weekly)'],
+                 # 3 means reboot at start and between every test.
+                 varslist=["graphics.rebootLevel=3"],
                  ignore_test_failures=True,
                  max_run_sec=3*60*60,  # 3 hours
                  totalshards=5,
diff --git a/server/site_tests/tast/control.cuj-weekly-1 b/server/site_tests/tast/control.cuj-weekly-1
index 36e8c48..ff46726 100644
--- a/server/site_tests/tast/control.cuj-weekly-1
+++ b/server/site_tests/tast/control.cuj-weekly-1
@@ -26,6 +26,8 @@
     job.run_test('tast',
                  host=hosts.create_host(machine),
                  test_exprs=['("group:cuj" && cuj_weekly)'],
+                 # 3 means reboot at start and between every test.
+                 varslist=["graphics.rebootLevel=3"],
                  ignore_test_failures=True,
                  max_run_sec=3*60*60,  # 3 hours
                  totalshards=5,
diff --git a/server/site_tests/tast/control.cuj-weekly-2 b/server/site_tests/tast/control.cuj-weekly-2
index 834066f..9b2bfbd 100644
--- a/server/site_tests/tast/control.cuj-weekly-2
+++ b/server/site_tests/tast/control.cuj-weekly-2
@@ -26,6 +26,8 @@
     job.run_test('tast',
                  host=hosts.create_host(machine),
                  test_exprs=['("group:cuj" && cuj_weekly)'],
+                 # 3 means reboot at start and between every test.
+                 varslist=["graphics.rebootLevel=3"],
                  ignore_test_failures=True,
                  max_run_sec=3*60*60,  # 3 hours
                  totalshards=5,
diff --git a/server/site_tests/tast/control.cuj-weekly-3 b/server/site_tests/tast/control.cuj-weekly-3
index 89b8638..9572fbf 100644
--- a/server/site_tests/tast/control.cuj-weekly-3
+++ b/server/site_tests/tast/control.cuj-weekly-3
@@ -26,6 +26,8 @@
     job.run_test('tast',
                  host=hosts.create_host(machine),
                  test_exprs=['("group:cuj" && cuj_weekly)'],
+                 # 3 means reboot at start and between every test.
+                 varslist=["graphics.rebootLevel=3"],
                  ignore_test_failures=True,
                  max_run_sec=3*60*60,  # 3 hours
                  totalshards=5,
diff --git a/server/site_tests/tast/control.cuj-weekly-4 b/server/site_tests/tast/control.cuj-weekly-4
index c094440..ab0a276 100644
--- a/server/site_tests/tast/control.cuj-weekly-4
+++ b/server/site_tests/tast/control.cuj-weekly-4
@@ -26,6 +26,8 @@
     job.run_test('tast',
                  host=hosts.create_host(machine),
                  test_exprs=['("group:cuj" && cuj_weekly)'],
+                 # 3 means reboot at start and between every test.
+                 varslist=["graphics.rebootLevel=3"],
                  ignore_test_failures=True,
                  max_run_sec=3*60*60,  # 3 hours
                  totalshards=5,