[autotest] fix test_that breakage by adding BOARD label to afe
BUG=chromium:253594
TEST=Ran test_that. No longer had ValidationError during suite run.
test_that unit tests pass.
Change-Id: I0b4eefcd1c8f1c5f2c6f58d0188e10fa1991b037
Reviewed-on: https://gerrit.chromium.org/gerrit/59830
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
diff --git a/site_utils/test_that_unittest.py b/site_utils/test_that_unittest.py
index bcf5922..28c542c 100755
--- a/site_utils/test_that_unittest.py
+++ b/site_utils/test_that_unittest.py
@@ -90,9 +90,11 @@
autotest_path = 'ottotest_path'
suite_name = 'sweet_name'
remote = 'remoat'
+ build = 'bild'
+ board = 'bored'
suite_control_files=['c1', 'c2', 'c3', 'c4']
- def fake_suite_callback(*args):
+ def fake_suite_callback(*args, **dargs):
for control_file in suite_control_files:
afe.create_job(control_file, hosts=[remote])
@@ -100,7 +102,8 @@
self.mox = mox.Mox()
self.mox.StubOutWithMock(test_that, 'schedule_local_suite')
test_that.schedule_local_suite(autotest_path, suite_name,
- afe).WithSideEffects(fake_suite_callback)
+ afe, build=build,
+ board=board).WithSideEffects(fake_suite_callback)
self.mox.StubOutWithMock(test_that, 'run_job')
# Test perform_local_run. Enforce that run_job is called correctly.
@@ -110,7 +113,7 @@
remote, autotest_path)
self.mox.ReplayAll()
test_that.perform_local_run(afe, autotest_path, ['suite:'+suite_name],
- remote)
+ remote, build=build, board=board)
self.mox.UnsetStubs()
self.mox.VerifyAll()