ef446dd987a5bfe501dc0ae872f87648e83eade1 |
|
05-Sep-2013 |
Alex Miller <milleral@chromium.org> |
[autotest] Add ability for enum to not only increment by 1. Because I want this feature, and every other enum everywhere lets you control the actual values given. TEST=unit BUG=chromium:250583 Change-Id: Ie88efb3c4394209be84234308a7d1d5be6ffd7f1 Reviewed-on: https://chromium-review.googlesource.com/168141 Reviewed-by: Alex Miller <milleral@chromium.org> Tested-by: Alex Miller <milleral@chromium.org> Commit-Queue: Alex Miller <milleral@chromium.org>
/external/autotest/client/common_lib/enum.py
|
7c72f9c6cd22c252a4fbd20c079a471ab3ba9f7e |
|
22-May-2013 |
Aviv Keshet <akeshet@chromium.org> |
[autotest] Enum get_value works when passed a long Prior to this CL: > import common > from autotest_lib.client.common_lib import control_data > control_data.CONTROL_TYPE.get_value('client') 2 > control_data.CONTROL_TYPE.get_value(2) 2 > control_data.CONTROL_TYPE.get_value(2L) AttributeError: 'long' object has to attribute 'upper' After this CL: [snip] > control_data.CONTROL_TYPE.get_value(2L) 2L The reason this matters is that, occasionally, enums stored in one of our databases as an integer are being stored as a long. Hardening Enum so it sanely handles long ints removes the need to sanity check whether enums coming out of the db are ints or longs. BUG=See above TEST=unit tests pass; Also see above. Change-Id: I3ae84e8593daa559f530c99c6454eb2336b51303 Reviewed-on: https://gerrit.chromium.org/gerrit/56116 Reviewed-by: Aviv Keshet <akeshet@chromium.org> Tested-by: Aviv Keshet <akeshet@chromium.org> Commit-Queue: Aviv Keshet <akeshet@chromium.org>
/external/autotest/client/common_lib/enum.py
|
df062569a6407ec084c4ee05b9390f8a0183d37b |
|
03-Jul-2008 |
showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> |
Adding protection levels to hosts. Allows the user to specify how much the repair operation is allowed to do on the host (e.g., do not repair, repair filesystem only, allow reimaging). Risk: low Visbility: medium (adding a new input field) git-svn-id: http://test.kernel.org/svn/autotest/trunk@1771 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/client/common_lib/enum.py
|