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

Unified Diff: utils/test_importer.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch 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
Index: utils/test_importer.py
diff --git a/utils/test_importer.py b/utils/test_importer.py
index 00b912ccb9ddfea9375ea1985ade0e3ae5ecb62c..a7be7557e44c29c549273786105df22b9b968072 100755
--- a/utils/test_importer.py
+++ b/utils/test_importer.py
@@ -242,6 +242,12 @@ def update_tests_in_db(tests, dry_run=False, add_experimental=False,
_log_or_execute(repr(new_test), new_test.save)
add_label_dependencies(new_test)
+ # save TestParameter
+ for para_name in data.test_parameters:
+ test_parameter = models.TestParameter.objects.get_or_create(
+ test=new_test, name=para_name)[0]
+ test_parameter.save()
+
def _set_attributes_clean(test, data):
"""
« cli/job.py ('K') | « utils/run_pylint.py ('k') | utils/unittest_suite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698