Autotest: Fix passing of args for desktopui_PyAutoPerf tests.
Args were being passed incorrectly from the test suite to the client
tests. Now instead of passing the args as a named variable we just
pass them directly to the client tests.
BUG=chromium-os:35650
TEST=Applied change and ran on a Trybot on ToT.
Change-Id: Ib706f90c607902870a888af807c113462fcb93f8
Reviewed-on: https://gerrit.chromium.org/gerrit/36453
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Simran Basi <sbasi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
diff --git a/server/site_tests/desktopui_PyAutoPerf/desktopui_PyAutoPerf.py b/server/site_tests/desktopui_PyAutoPerf/desktopui_PyAutoPerf.py
index 8819306..973db34 100644
--- a/server/site_tests/desktopui_PyAutoPerf/desktopui_PyAutoPerf.py
+++ b/server/site_tests/desktopui_PyAutoPerf/desktopui_PyAutoPerf.py
@@ -20,7 +20,7 @@
self.client_test = 'desktopui_PyAutoPerfTests'
self.server_test = 'desktopui_PyAutoPerf'
client_at = autotest.Autotest(self.client)
- client_at.run_test(self.client_test, args=str(args))
+ client_at.run_test(self.client_test, *args)
if not self.job.label:
logging.debug('Job has no label, therefore not uploading perf'
' results to google storage.')
@@ -33,4 +33,4 @@
if not utils.gs_upload(result_file, gs_path, 'project-private'):
raise error.TestFail('Failed to upload perf results %s to google'
'storage location %s.' % (result_file,
- gs_path))
\ No newline at end of file
+ gs_path))