Merge lp:~fgimenez/snappy/filter-tests into lp:~snappy-dev/snappy/snappy-moved-to-github
Proposed by
Federico Gimenez
Status: | Superseded |
---|---|
Proposed branch: | lp:~fgimenez/snappy/filter-tests |
Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
Prerequisite: | lp:~fgimenez/snappy/cross-compile-debs |
Diff against target: |
217 lines (+80/-45) 4 files modified
_integration-tests/data/tpl/control (+10/-0) _integration-tests/main.go (+66/-33) debian/integration-tests/control (+0/-11) debian/integration-tests/snappy-test (+4/-1) |
To merge this branch: | bzr merge lp:~fgimenez/snappy/filter-tests |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leo Arias (community) | Approve | ||
John Lenton (community) | Approve | ||
Review via email: mp+263222@code.launchpad.net |
This proposal has been superseded by a proposal from 2015-07-06.
Commit message
Allow filter tests from the command line.
Description of the change
Allow filter tests from the command line.
The filter flag has been added:
$ go run _integration-
The filtering itself is done by generating an adt-run control file on the fly, based on a template.
The same approach could be useful for other use cases too. For instance, when we will have different test binaries, with a template we don't need them to be defined both in the wrapper and in the control file.
To post a comment you must log in.
Shouldn't we have a default control file?
I'm thinking about the future when we can specify the requirements as test classes in the control file, so the runner can call adt-run directly without using our main.go.
So I like this a lot, but I was thinking about also parsing the control file to look for test bed requirements. We can talk tomorrow to figure out how to have both, filtering and test bed specs.
Also, remember that we can't call the test binary directly because the reboot will kill it and we'll lose the results. We need to merge this with the approach in https:/ /code.launchpad .net/~elopio/ snappy/ upgrade- test/+merge/ 262657 , that uses a bash script that runs the test binary.