History log of /external/autotest/cli/action_common_unittest.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
25e1fd446390578299d7b7da0f84914a0728c5fc 19-Dec-2014 Dan Shi <dshi@chromium.org> [autotest] Add atest stable_version command to manage stable versions.

Add a decorator require_confirmation to atest, any delete action will prompt
for confirmation, use option --no-confirmation to skip that. It's applicable
to command like atest label delete, atest host delete.

Add 3 actions for topic stable_version:
list: Show version of a given board or list all boards and their stable
versions if --board option is not specified.

$ ./atest stable_version list
==============================
board | version
------------------------------
DEFAULT | R41-4687.0.0
peppy | R40-4555.0.0
==============================

modify: Set the stable version of a given board to the given value.

$ ./atest stable_version modify -b peppy -i R40-4515.0.0
Stable version for board peppy is changed from R40-4555.0.0.0 to R40-4515.0.0.

delete: Delete the stable version of a given board. So its stable version will
use the value for board `DEFAULT`.

$ ./atest stable_version delete -b peppy
Are you sure to delete stable version for board peppy? After this action is
done, stable version for board peppy will be R41.0.0.0
Continue? [y/N] y
Stable version for board peppy is deleted.

DEPLOY=apache
BUG=chromium:436656
TEST=local setup, unittest

Change-Id: I31047740a4886854aa653b1bf0f16c5f5c7a3f14
Reviewed-on: https://chromium-review.googlesource.com/236951
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Trybot-Ready: Dan Shi <dshi@chromium.org>
/external/autotest/cli/action_common_unittest.py
c613317ba061b85a38ba51edfca9172f228a83c0 18-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> A few followup enhancements to the recent change made to the cli to enclose the topic names in single quotes.

Signed-off-by: Ashwin Ganti <aganti@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3747 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
5dc6276b560798fded59e9334a824c839fa7a371 03-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add single quotes to the topic value in the output message .

Signed-off-by: Ashwin Ganti <aganti@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3641 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
4151539ad9880e0329c788b0d25e9998ae1a8f73 11-Jul-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Update CLI to use autotemp for tempfiles

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


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3396 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
fb64e6a3a4403534ae1d136c72010036afebe8ff 22-Apr-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Add atomicgroup support to the command line interface.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3030 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
0887d402476b4a873f0664ddb88d3e43005f6113 30-Jan-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Fix atest label list --all. A FE change from 0/1 to False/True had broken it.

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@2713 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
7a3ebe30d13f8dc7e8d3d0990b8b026be75771f3 01-Dec-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Continue to add/remove the valid hosts or users to the label or ACL in
case of failures.
Modified the corresponding unittests:
. Adding check_playback() everywhere.
. Changing to the new Exception messages.
. New test for partial failure.

Risk: medium
Visibility: medium

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2525 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py
be630eb07ddb84310fcc580acffcaa362a2dc606 01-Aug-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Attached is the CLI code tarball. It is documented at http://test.kernel.org/autotest/CLIHowTo

From: jmeurin@google.com



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1950 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/cli/action_common_unittest.py