summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Make rootfs-tarball build only the tarball also on ARMLars Wirzenius2013-02-201-7/+1
|
* Require morphology name to match filenameSam Thursfield2013-02-081-24/+32
| | | | | | | Allowing differences causes only confusion. Whether or not the 'name' field should surive at all is up for debate: it's very useful when seeing the contents of the morphology out of context (e.g. in documentation or pastebins), but is that worth the extra effort?
* Fix testsRichard Maw2013-01-221-4/+2
| | | | | | | | Invalid text changed to be something that doesn't parse as YAML either, and catch convert the YAMLError to the expected exception. Ideally there wouldn't be any `#pragma: no cover`s, but I could not trigger these code paths.
* Rename arm to armv7 and be consistentRichard Maw2012-09-201-1/+1
| | | | | armv5 and armv7 are different enough to be a problem, so specify which particular arm sub-architecture we currently support.
* Always ls-tree before trying to cat-fileSam Thursfield2012-08-241-1/+10
| | | | | This provides much better performance in cases where most of the repos do not have a .morph included.
* Use git ls-tree to autodetect build systemSam Thursfield2012-08-241-2/+12
| | | | | | | The cost of one git ls-tree call is roughly the same as one git cat-file call. Therefore, when autodetecting the build system, it is much faster to list the tree once and then search for the required files than to call git cat-file for every possible one.
* Merge branch 'master' of roadtrain.codethink.co.uk:baserock/morphLars Wirzenius2012-08-011-0/+8
|\ | | | | | | | | | | Conflicts: morphlib/morphologyfactory.py morphlib/morphologyfactory_tests.py
| * Raise clearer error on morphology parse errorsSam Thursfield2012-07-311-0/+7
| |
* | python scripts: pep8ize codebaseRichard Maw2012-08-011-12/+11
|/ | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Require system-kind on system morphologiesLars Wirzenius2012-07-191-0/+9
|
* Set Morphology.needs_artifact_metadata_cachedLars Wirzenius2012-07-191-0/+12
|
* Have MorphologyFactor set Morphology.needs_staging_areaLars Wirzenius2012-07-191-1/+13
|
* Have MorphologyFactory set Morphology.builds_artifactsLars Wirzenius2012-07-181-1/+60
| | | | | | | | | | | | | This way we can have one place in the code where we determine what artifacts get built from a specific morphology, rather than spreading the information around the code base. From now on, everything is supposed to use the builds_artifacts attribute to get the list of artifacts. ArtifactResolver has been changed to do that. Some of the tests are now a bit messier, and should really be changed to create Morphology objects using MorphologyFactory, but that's a change for another day.
* Add missing empty lines, for clarityLars Wirzenius2012-07-181-0/+13
|
* morphologyfactory: infer build system without listRichard Maw2012-04-201-23/+39
| | | | | | | | | | Detecting the build system is managed by it asking if any files exist detecting if the file exists is done with a callback function. This callback can use cat-file. If list_files existed this could be more efficient as it would not require the files to be read from the remote server and it only needs to be one round-trip
* morphologyfactory: work without RemoteRepoCacheRichard Maw2012-04-201-3/+24
| | | | | There are cases where we would not need a remote cache, so it should be able to operate without one.
* add morphology factoryRichard Maw2012-04-191-0/+90