← Back to team overview

canonical-ci-engineering team mailing list archive

Re: Restricting dep8 tests to run on the phone

 

Hi,

On Tue, Dec 9, 2014 at 9:09 AM, Francis Ginther <
francis.ginther@xxxxxxxxxxxxx> wrote:

> I believe the most immediate answer to "How should a test author declare
> that a particular test suite should only be run on a real phone?" is to
> take the approach that was discussed in Malta [1], and make user of the
> 'Classes' field [2]. Martin, please correct me if I'm wrong, but I believe
> 'Classes' replaced what was originally discussed as tags in that document.
>
> Martin, Jean-Baptiste, Vincent,
>
> For this to work, the current britney service for proposed-migration will
> need to interpret this field and act accordingly. Does britney do this now?
>
> I'm looking to Martin to help define what these classes should be. For
> example, should we start with just 'phone' as that appears to the testbed
> for which these tests are being developed (this is my assumption)? But as
> Martin mentioned, we don't want to just encode specific platform
> information in the dep8 control file. From our current testing needs,
> 'phone' and 'desktop' are the two classes that first come to mind.
>

So we need 3 things:


   1. Confirm that using dep8 'classes' is the correct approach. Define the
   specific classes to use ("phone" and "desktop" seem good to me).
   2. Modify britney to DTRT when those classes are encountered - for now,
   just don't run tests that have the 'phone' class I guess?
   3. Document the above.


I can take number 3, once number 1 is complete. We also need some other
ubuntu-touch specific documentation, so I can roll all the docs into one
single page.


Cheers,
-- 
Thomi Richards
thomi.richards@xxxxxxxxxxxxx

Follow ups

References