History log of /external/autotest/client/common_lib/control_data_unittest.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f53d1269ad7321116eadcb0167d81dbea9bf4bef 19-Jun-2017 Dan Shi <dshi@google.com> [autotest] Allow control file to specify maximum test results to collect

Control file can set an attribute MAX_RESULT_SIZE_KB to specify the maximum
test result size to collect. By default, it will be 20MB if
`enable_result_throttling` is set to True in global config.

BUG=chromium:716218
TEST=unittest, local run dummy tests

Change-Id: Ia6b9a04d92ec91179ceb99466b5e9d6a5d1b3ef3
Reviewed-on: https://chromium-review.googlesource.com/540196
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/client/common_lib/control_data_unittest.py
3d718dc7b53fecfe4c17cc917e730e2cb829356d 09-Feb-2017 Allen Li <ayatane@chromium.org> [autotest] Add suite_tag_parts tests

BUG=None
TEST=Run tests

Change-Id: I74dab4603428812bdda2ee81aec67a4f66cb8c46
Reviewed-on: https://chromium-review.googlesource.com/439727
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
4a1405641c1d26097b1e33435964dd09a6d60487 08-Mar-2016 Christopher Wiley <wiley@google.com> Add unittest for merging SUITE and ATTRIBUTES

We expect people to use ATTRIBUTES going forward, but we
should try to prevent ourselves from unintentially breaking
the logic to merge SUITE and ATTRIBUTES. This support allows
us to run old snapshots of autotest found in old builds
against new infrastructure.

Force a stable suite name order to make this test stable.

BUG=b:27519238
TEST=unittest passes

Change-Id: I9d61310083dfd224c852eaaf6bfab178948b07f1
Reviewed-on: https://chromium-review.googlesource.com/331298
Commit-Ready: Christopher Wiley <wiley@chromium.org>
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
9e6812115fcc52d762827002f525d0836b2c2003 19-Sep-2015 Shuqian Zhao <shuqianz@chromium.org> [autotest] Tests which not specify any subsystem will have 'subsystem:default'

Tests without any subsystem specified will have 'subsystem:default' when
read into ControlData object.

BUG=chromium:533659
TEST=unittest and test on local autotest with cmd
site_utils/run_suite.py --board=peppy --build=peppy-paladin/LATEST
--suite_name=suite_attr_wrapper
--suite_args="{'attr_filter':'suite:network_nightly and
subsystem:default'}"
.

Change-Id: Ia6e7e668d466e58cdd5e92704029f2d1761d86df
Reviewed-on: https://chromium-review.googlesource.com/300732
Commit-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
13248c5b1b6978647bc8ae040db6b221f488a7e0 27-Mar-2015 Shuqian Zhao <shuqianz@chromium.org> [autotest] Modify control_data.py to parse ATTRIBUTES from control files

Modify control_data.py to parse ATTRIBUTES list from control files.
Also, add unittest for it.

BUG=chromium:470015
TEST=Test on moblab

Change-Id: I18c59fed948b76d86b5bde8e22c1a73e5faf93d2
Reviewed-on: https://chromium-review.googlesource.com/262931
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
ec1d47d85cc83f30631518d8fbb6406036a3ac39 13-Feb-2015 Dan Shi <dshi@chromium.org> [autotest] Add support for scheduler to honor require_ssp attribute in control file

This CL adds changes to pipe require_ssp attribute in control file to autoserv
command. Following are the work flow:

1. The control file parser stores require_ssp attribute value in afe_jobs table.
2. QueueTask compiles command line list, --require-ssp option will be added to
the command line list if following conditions are met:
a. AUTOSERV/enable_ssp_container in global config is True
b. The test is a server-side test
c. require_ssp for the job entry is None or True.
3. When agent_task tries to call run method to run the command, it will check if
there is any drone supporting server-side packaging first. If no drone is found,
the agent task will will run the command in a drone without using server-side
packaging. A warning will be posted in the autoserv log.
4. If a drone without SSP supported is assigned to a test requires SSP, the test
will be run without ssp.

BUG=chromium:453624
TEST=unittest, local test:
set AUTOSERV/enable_ssp_container to True in shadow config;
Create a job for dummy_PassServer in AFE, check require SSP, confirm the job
succeeds but with a warning in the autoserv log.

Create a job for dummy_PassServer_nossp in AFE, uncheck require SSP, confirm
the job passes without warning in the autoserv log.

set AUTOSERV/enable_ssp_container to False in shadow config, restart scheduler.
Create a job for dummy_PassServer in AFE, check require SSP, confirm the job
succeeds without warning in the autoserv log.

also run test_that in local chroot to make sure test_that is not affected.

DEPLOY=apache,scheduler, db migrate must be done before push this CL to prod.

Change-Id: I02f3d137186676ae570e8380d975a1bcd9ffbb94
Reviewed-on: https://chromium-review.googlesource.com/249841
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
ee70731b31f66ecf8043b9fa6d1f86a52753a22f 31-Mar-2014 Prashanth B <beeps@google.com> [autotet] Pipe bug_template through control data.

Teach the control file parser to understand a new type of control
file variable, the bug template.

BUG=chromium:310859
TEST=Ran a suite and verified that control_data is available
in dynamic_suites.

Change-Id: I91be1ff9b7f9771ec26f734f70386e7f7f8a3c2c
Reviewed-on: https://chromium-review.googlesource.com/192534
Tested-by: Prashanth B <beeps@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Prashanth B <beeps@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
6f455262ded933c1699fea410a9ddaf967df6330 02-Mar-2013 Aviv Keshet <akeshet@chromium.org> [autotest] Parse RETRIES from control files

Parse the RETRIES variable from control files and insert into job/test
databased entry. This happens in suite.py before creation of suite sub-jobs,
and in test_importer when importing new tests into afe_autotests database.

BUG=chromium-os:37158
TEST=unit.
Ran utils/test_importer.py and verified that 2 tests name
flaky_test both had test_retry imported correctly with value 2 (in
afe_autotests table).
Kicked off a dummyflake suite and verified that its sub jobs were
created with test_retry=2.

Change-Id: I93eb0f4581120082a82c46b2be98286ede248c94
Reviewed-on: https://gerrit.chromium.org/gerrit/44435
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
ef5b53f9c7fe279a7b89f9e9c731e7c1ea523d92 22-Jan-2013 Dan Shi <dshi@google.com> [Autotest] Schedule tests with a longer TIME first in dynamic_suite

Order tests based on the Time setting in control file to schedule test
with longer TIME setting, e.g. LENGTHY, to run first.

BUG=chromium-os:33307
TEST=run unit test control_data_unittest.py and suite_unittest.py,
run_suite on 'graphics' suite.

Change-Id: I07fed6fccd9baff8f7655259cedde97b6892f8a0
Reviewed-on: https://gerrit.chromium.org/gerrit/41766
Commit-Queue: Dan Shi <dshi@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Tested-by: Dan Shi <dshi@chromium.org>
/external/autotest/client/common_lib/control_data_unittest.py
e0493a4af57c1a73376a7bafaed542c01f588196 15-Nov-2010 Eric Li <ericli@chromium.org> Merge remote branch 'cros/upstream' into tempbranch

BUG=
TEST=

Review URL: http://codereview.chromium.org/4823005

Change-Id: I5d56f1c10d0fce7f9d7dc3ad727ea52dcb9b2d6c
/external/autotest/client/common_lib/control_data_unittest.py
6631273af8b88842cbd6202cc4615daf050cc957 27-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Make a bunch of stuff executable



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3621 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/control_data_unittest.py
5f2bc2822bce3dc615ca1c82ac7b320ed3a6161b 28-Jul-2009 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Fix a few typos in autotemp and change all client unittests to use autotemp

Signed-off-by: Scott Zawalski <scottz@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3449 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/control_data_unittest.py
d7cd983031fc77a247d022aef67b481892681ddc 02-Oct-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Update control_data to be more verbose about which file it failed to parse
Added syntax error check that prints file and line when an error is found
Risk: Low
Visibility: Errors that just said 'Your control file don't have the proper variables'
now actually specifies which file is at fault

Signed-off-by: Scott Zawalski <scottz@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@2223 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/control_data_unittest.py
93f4209487841147d8fae40ce28beb310663b77a 18-Jul-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Make control_data handle int's and other types. This feature saves us from
editing lots of control files that are currently broken...and is nicer anyway.

Risk: Low
Visibility: Low

Signed-off-by: Jeremy Orlow <jorlow@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1872 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/control_data_unittest.py
99c2c6f54e962fe4e7701cd9aaa645fdabacd203 11-Jul-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> These files go into client/common_lib/

Signed-off-by: Jeremy Orlow <jorlow@google.com>

Add a library for parsing control file variables (those things in all
caps at the top of all control files).
This library will soon be used for populating the web front end.



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1817 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/control_data_unittest.py