History log of /cts/tools/host/src/com/android/cts/ConsoleUi.java
Revision Date Author Comments
c4c8071a3eae11c53e844f51fd39aeb56ae91e0d 05-Apr-2011 Brian Muramatsu <btmura@android.com> Remove RequiredFeatures Annotation

Remove the annotation since its presence is confusing. The
proper way is to just use the PackageManager#hasSystemFeature
check along with any other API methods.

Change-Id: I8e29b62a95c48c11939c52cf5a5270f5006d7a3a
f8c0a36cd3130cde3808790cfe5a1a31ff5807aa 05-Nov-2010 Brian Muramatsu <btmura@android.com> Remove Profile Annotations Experiment

Bug 3166146

Change-Id: I23e09d4c4d828c8094d7feefaa5e1ed1ce07715f
eac11ceead475614996047e425ee944d64e8939b 05-Oct-2010 Brian Muramatsu <btmura@android.com> Add "Omitted" State for CTS Tests

Add a new "omitted" state for tests. This is different from "not
executed" to fix a problem where CTS would keep retrying to run
the not executed tests over and over again.

In a prior change, I switched the default test result from pass to
not executed in the test result parser, since I didn't want skipped
tests to be reported as passed (or tests that failed horribly to
report pass). This worked fine when running a specific package "-p"
but started to fail when running the entire plan "--plan CTS." This
is because there are two code paths where one infinitely retries
if there are any tests not marked as "not executed" but the other
just retries once. Tests with the new annotations thus caused an
infinite loop of retrying... By setting tests to "omitted" by
default, the tests won't be retried over and over.

Change-Id: I3b4995089605860b1ed5e6b752dde811132f16f8
57980ae875013ccbba8ebac1bd9f9bb9cddcc47c 24-Aug-2010 Brian Muramatsu <btmura@android.com> Cts Feature/Profile Annotations

Add annotations that allow CTS to be used for multiple device
profiles.

Example is shown in ProfileTest.java.

1. @SupportedProfiles - run the test only if the device's profile is
the one passed via the "--profile" flag to CTS like:

startcts --plan CTS --profile HANDHELD
startcts --plan CTS --profile STB

2. @RequiredFeatures - run the test only if the device's
PackageManager reports the features needed by the test. For
instance tag wifi tests with this annotation's value set to
the wifi feature to only run it on devices that declare the
feature.

If not specified, the profile will be set to ALL, which means run all
the tests.

This creates an additional library for CTS test annotations, so this
will require a change to the build/core/cts.mk project too. A new
Makefile "CtsHostLibraryList.mk" can be used now to have the host
use additional libraries.

Change-Id: I69d76b65569160648020306fe14c94242d99efc1
7bc0e8e2367cc49b0ce8f1fdef3937f9129bd3b8 24-Aug-2010 Brian Muramatsu <btmura@android.com> DO NOT MERGE Cts Feature/Profile Annotations

Add annotations that allow CTS to be used for multiple device
profiles.

Example is shown in ProfileTest.java.

1. @SupportedProfiles - run the test only if the device's profile is
the one passed via the "--profile" flag to CTS like:

startcts --plan CTS --profile HANDHELD
startcts --plan CTS --profile STB

2. @RequiredFeatures - run the test only if the device's
PackageManager reports the features needed by the test. For
instance tag wifi tests with this annotation's value set to
the wifi feature to only run it on devices that declare the
feature.

If not specified, the profile will be set to ALL, which means run all
the tests.

This creates an additional library for CTS test annotations, so this
will require a change to the build/core/cts.mk project too. A new
Makefile "CtsHostLibraryList.mk" can be used now to have the host
use additional libraries.

Change-Id: I2c75a07eccf90df3bee0a87edf0d2d497e150930
dd31e3c7cf5e41fa1f978092a9e7ae775ec38342 20-Jul-2010 Mike Rieker <mrieker@nii.net> --device option sometimes ignored on start command
when used with --test option

the value fetched from the option was overridden from
a value retrieved from a previous session. this change
lets the --device option have the final say.

Change-Id: I79a87faf6591944a082b96ffeb372214a47a04b5
f176eafe119e8065c29f6eb99d62d01274581174 27-Jul-2010 Brian Muramatsu <btmura@google.com> manual cherry-pick of 45f8e6a523a096a3781f90d4fd5d54dcc0673a7e

Change-Id: I770948540f3aca9d930edea7a12119ff63fe9bdf
a04cae790a43b36e678179b174c2464b147a1325 09-Jun-2010 Mike Rieker <mrieker@nii.net> CTS would report 'too many files open' because it did not close .xml output files

Change-Id: I6253b04d7a6bfac02220b324f4a0f6303254d722
3da7534f2880068b90b88585c45be62751dbfd6b 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
d2b5fd8abb19aa1a3aa1390a07d443fad25b2244 06-May-2009 Phil Dubach <nobody@android.com> AI 148374: CTS: Do not ask whether to resume a session when started from command line
BUG=1835344

Automated import of CL 148374
fa5ce86bcb012cb5fa836361a43664a367cecfca 06-May-2009 Phil Dubach <nobody@android.com> AI 148357: CTS: Read sesion start and end times when loading existing results
This fixes the problem where 'ls -r' would not show the correct start and
end times for sessions that were loaded from existing results. The start
and end times displayed were both set to the time when the result was
loaded, which made it impossible to choose the right session among a number
of runs with the same plan.

Automated import of CL 148357
f005cd606f3e89a455afe99e82752d33b47f20ca 01-May-2009 Scott Su <nobody@android.com> AI 148161: CTS: Support from creating derived plans from previous sessions.
BUG=1812493

Automated import of CL 148161
62311851c88f51785e03ec3c2abed8a0060f48cf 26-Apr-2009 Phil Dubach <> AI 147797: CTS: Throw exception on attempts to install a nonexistent APK
Previously submitted as CL147771, which was missing files.

Automated import of CL 147797
af9a409bf54a26b78e08e7799192dad5ddfda648 25-Apr-2009 Gaurav Mathur <> AI 147786: Automated g4 rollback of changelist 147771.
*** Reason for rollback ***
CL 147771 broke the build - reverting
*** Original change description ***
CTS: Throw exception on attempts to install a nonexistent APK

Automated import of CL 147786
4f35e5e9c5fa551355e250186230ee29a4c6563f 25-Apr-2009 Phil Dubach <> AI 147771: CTS: Throw exception on attempts to install a nonexistent APK
BUG=1810821

Automated import of CL 147771
55833308de1e9e90f851462aa63381c99f3c1516 07-Apr-2009 Scott Su <> AI 144757: am: CL 144755 am: CL 144754 CTS: Host console bug fixes
- Fixes occasional problem with results being associated with the wrong test (off by one)
- No longer adds multiple device info sections to the result when the device is restarted during a test run
Original author: sus
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 144757
fa86c876df304e3e46cc2855e5d023d95dc99c82 07-Apr-2009 Scott Su <> AI 144755: am: CL 144754 CTS: Host console bug fixes
- Fixes occasional problem with results being associated with the wrong test (off by one)
- No longer adds multiple device info sections to the result when the device is restarted during a test run
Original author: sus
Merged from: //branches/cupcake/...

Automated import of CL 144755
703909af3ebfc763b65a90703283e8235f8e6c42 07-Apr-2009 Scott Su <> AI 144754: CTS: Host console bug fixes
- Fixes occasional problem with results being associated with the wrong test (off by one)
- No longer adds multiple device info sections to the result when the device is restarted during a test run
BUG=1741186

Automated import of CL 144754
ba501a64ade6e2d091594b645c67015c9efaf2d4 25-Mar-2009 Scott Su <> Automated import from //branches/donutburger/...@141371,141371
059b3714f508ca39b0b9b2bba3f75c7c5c808a08 25-Mar-2009 Scott Su <> Automated import from //branches/master/...@141374,141374
7671becdf1320aa659abcb641546d636cf6a02cc 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
f8057104af9cae031b544e971a52adafa7c0d9e1 16-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607