History log of /external/autotest/client/common_lib/decorators.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a5aa7ba119adf5a383f10db8c6b3a536332d3d4d 11-May-2017 Allen Li <ayatane@chromium.org> [autotest] Clean up cached property implementation

Use the non-data descriptor behavior of looking up instance attributes
before class attributes to cache the value. This save an extra dict
and the danger of overwriting the instances _property_cache if it is
already using it, and a few extra attribute lookups when accessed.

This is a pretty standard cached property template.

BUG=None
TEST=Run unittests

Change-Id: I16cabcfa942baca673da80ccb92b297a64e9aca0
Reviewed-on: https://chromium-review.googlesource.com/503548
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
/external/autotest/client/common_lib/decorators.py
d322d3d9427bbc362e07ecbf6f3829d5df6cd57d 09-Feb-2017 Benny Peake <bpeake@google.com> Tied in new sponge upload system.

Tied in the new sponge upload system to allow autotest job info
to be uploaded to sponge.

BUG=b:34690570
TEST=Ran test and had results uploaded to sponge.

Change-Id: I0966f2ee37491110b321243c6d18105e5765b250
Reviewed-on: https://chromium-review.googlesource.com/440465
Commit-Ready: Tom Turney <tturney@google.com>
Tested-by: Tom Turney <tturney@google.com>
Reviewed-by: Tom Turney <tturney@google.com>
/external/autotest/client/common_lib/decorators.py
4f46aaffdf5ce99bf60d22f4e4e0652343ebecad 25-Jun-2016 Dan Shi <dshi@google.com> [autotest] Support test to upload results to Sponge inside test code.

This allows android_ACTS test to upload results to Sponge including the child
test results in test_run_summary.json file.
The test only needs to make following call at the end of the test:
url = sponge_utils.upload_results_in_test(self, acts_summary='path_to_json')

BUG=chromium:616211
TEST=python site_utils/sponge_utils_functional_test.py

Change-Id: Ida93ffc802a9b9e3eb9d8217b0d7af69ab31f48b
Reviewed-on: https://chromium-review.googlesource.com/356167
Commit-Ready: Dan Shi <dshi@google.com>
Tested-by: Dan Shi <dshi@google.com>
Reviewed-by: Ang Li <angli@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/client/common_lib/decorators.py
82ef3df9b6cdb0cf94c3a21edd1d58bc569d317d 26-Mar-2014 Alex Miller <milleral@chromium.org> [autotest] Make caching decorator per-instance and not per-class.

One would greatly expect this to be per-instance.

BUG=chromium:356187
TEST=unit

Change-Id: Ia458c95af4dde63cf3ea47715093be1b4ae155d8
Reviewed-on: https://chromium-review.googlesource.com/191577
Tested-by: Alex Miller <milleral@chromium.org>
Reviewed-by: Prashanth B <beeps@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
/external/autotest/client/common_lib/decorators.py
5c0a6316d962234409dde66402d42bda05972e9a 10-Mar-2014 Alex Miller <milleral@chromium.org> [autotest] Add a caching property decorator.

I've wanted this a few times, so I'm finally writing it.

TEST=unit
BUG=None

Change-Id: I97a9310c4c9505c62e51b981ef9b27b6aac55462
Reviewed-on: https://chromium-review.googlesource.com/189514
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/decorators.py
23b7366d80488198d1ceab57d3b2d8b2509bc28a 10-Mar-2014 Alex Miller <milleral@chromium.org> [autotest] Make a dumping ground for useful decorators.

There are no references to in_context in our codebase, so there's
nothing to fix up.

BUG=None
TEST=unit

Change-Id: Ib4f3f3406679915807ebe7ea5cc8d4f89b86db65
Reviewed-on: https://chromium-review.googlesource.com/189513
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/decorators.py