Fix missing bug_id and part_id parameters in quick v2 storage qual test.
BUG=b:184643680
TEST=Local test run.
Change-Id: I064566a264829cdb9cc05dc8b310ad27ccb32a75
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2834494
Reviewed-by: Alex Bergman <abergman@google.com>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Afshin Sadrieh <asadrieh@google.com>
Tested-by: Alex Bergman <abergman@google.com>
Commit-Queue: Alex Bergman <abergman@google.com>
diff --git a/server/site_tests/tast/control.storage-qual-quick b/server/site_tests/tast/control.storage-qual-quick
index d259078..2b71d95 100644
--- a/server/site_tests/tast/control.storage-qual-quick
+++ b/server/site_tests/tast/control.storage-qual-quick
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from autotest_lib.client.common_lib import utils
+
AUTHOR = 'abergman, chromeos-engprod-platform-syd'
NAME = 'tast.storage-qual-quick'
TIME = 'MEDIUM'
@@ -25,6 +27,12 @@
import tempfile
import yaml
+utils.write_keyval(job.resultdir, {
+ 'storage_qual_version': 2,
+ 'bug_id': bug_id,
+ 'part_id': part_id
+})
+
def run(machine):
args_dict = globals().get('args_dict', {})
test_exprs = args_dict.get('test_exprs', 'storage.QuickStress.*').split(',')
@@ -35,8 +43,9 @@
test_args = dict()
tast_prefix = 'tast_'
for key, value in args_dict.items():
+ # TODO(b/185932989): get rid of 'tast_' prefix for var names.
if key.startswith(tast_prefix):
- test_args[key] = value.lstrip(tast_prefix)
+ test_args[key] = value
yaml.dump(test_args, stream=temp_file, default_flow_style=False)
job.run_test('tast',