Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Unified Diff: utils/site_test_importer_attributes.py

Issue 6124004: Revert "Merge remote branch 'cros/upstream' into autotest-rebase" (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/run_pylint.py ('k') | utils/test_importer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/site_test_importer_attributes.py
diff --git a/utils/site_test_importer_attributes.py b/utils/site_test_importer_attributes.py
index a2a1b509d962deecda1ac1ef8aba6b3cea498a2b..f49aedb4dda4e94e6b346fed65a6c4428d03bad6 100755
--- a/utils/site_test_importer_attributes.py
+++ b/utils/site_test_importer_attributes.py
@@ -8,6 +8,7 @@ This allows a site to customize the test creation attributes.
import common, re
+from autotest_lib.frontend.afe import models
def _set_attributes_custom(test, data):
@@ -23,3 +24,9 @@ def _set_attributes_custom(test, data):
# We set verify to always False (0).
test.run_verify = 0
+
+ if hasattr(data, 'test_parameters'):
+ for para_name in data.test_parameters:
+ test_parameter = models.TestParameter.objects.get_or_create(
+ test=test, name=para_name)[0]
+ test_parameter.save()
« no previous file with comments | « utils/run_pylint.py ('k') | utils/test_importer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698