aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-12-22patchtestdata: convert paths to absolute pathsed/patchtest/absolute-pathsEd Bartosh
Some tests fail if relative paths are provided to patchtest. Converting --repo-dir and --start-dir arguments to abosolute paths should make paths absolute, which is what patchset code currently assumes. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
2016-12-16doc/guest: escape newline at runqemu cmdLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-15meta-patchtest: add python-pylint packageLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-15doc/guest: clone patchtest repo inside GUEST folderLeonardo Sandoval
This allows complete separation between GUEST and SHARE folder, each having its own repositories. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-12scripts/create-summary: include an option to only print resultsLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-12scripts/contrib/patchtest-since: use getopts and include another argument ↵Leonardo Sandoval
(pattern) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-05contrib/patchtest-since: test every patch since a specific commitLeonardo Sandoval
Starting at a certain commit in the past, run patchtest until HEAD. This is useful for scripts requiring pretest execution because testing patch can be merge in every iteration. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-12-01scritps: place bitbake repo inside openembedded-core repoLeonardo Sandoval
The oe-core setup is the way is indicated in the subject, so oe-init-build-env script finds bitbake in the standard place. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-30lib: better log names for target commit/branchLeonardo Sandoval
Target commit and branch are set depending the context, so base names may not match target ones. Use target instead of base at least for the logging part. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-30lib: include command line branch before patch branchLeonardo Sandoval
Specify command line arguments have greater preference that the rest. In this case, if commit is not given through the command line, look for the branch (also from the cmd line) before going into the rest (patch data, then current repo) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-30lib: use specify branch instead of branch hashLeonardo Sandoval
If user either specify the branch through the command line or through the patch, use that data instead of the branch hash, allowing a more useful target branch on reports. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-30lib: move to master in case patchtest starts from a detached branchLeonardo Sandoval
patchtest creates a temporal branch to do its work and at the end it moves back to the branch where it started. Default to master in case initial repo state is detached. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-30lib: improve cmd debug logging when an exception occursLeonardo Sandoval
If a particular command fails, the system needs to show at least what the command was. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-29scripts: include bitbake repositoryLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-29meta-patchtest: use a package group to include patchtest-oe requirementsLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-29requirements: no need for tabulate anymoreLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-28meta-patchtest: include self-hosted package so image contains the build systemLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-25scripts: default to empty strings for pw user credentialsLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-24scripts: use git protocol instead of httpsLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-24scripts: point to correct patchwork repositoryLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-24doc: point to correct patchwork repositoryLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-24meta-patchtest: change oe-core instead of poky as reference repoLeonardo Sandoval
Patchtest and its test suite is intended for oe-core so set it as the reference repo. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-24doc: change oe-core instead of poky as reference repoLeonardo Sandoval
This commit partially reverts [1] and the reason is that patchtest and its test suite is intended for oe-core, not Poky. [1] 2563d4624dbf546d100d401027c2903338edcd39 Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-23doc: escape $ so it its interpreted by bitbake, not the shellLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-22doc: Define separate folders for guest and share folderLeonardo Sandoval
The guest machine should be constructed outside the BASE folder, which is the folder to be shared between host and guest, so changing the instructions to indicate the latter. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-22doc: Set poky instead of oe-core as patchtest's repoLeonardo Sandoval
Poky, not oe-core, is the repo that patchtest uses as final repository to do all its work, so correct the host documentation. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-22scritps: remove grep filter from post-summaryLeonardo Sandoval
This filter is already done inside the create-summary script so removing it from post script. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-22scripts: Remove series/revision info from the summaryLeonardo Sandoval
The series/revision is included by default by patchwork [1], so there is no need to include it again at the summary. [1] c1cea7c880fb2babd36c6eaa2204ed92ef5da843 at patchwork repo. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-11-15summary: show patch subject from commit objectPaul Eggleton
Now the results contain a commit "object" (really a dict) we need to select what to show. Select the subject since that will contain the [PATCH x/y] sequence number that may be useful in identifying the patch in question. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-15summary: fix parameter passingPaul Eggleton
At the moment we're referring to a module-level variable ("opt") in the function, and we were passing certain parameters into the rendering that aren't necessary (template name, output file name). To fix both of these, pass some of these explicitly to the function and then pass the parameters to go into the rendering separately. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-15summary: change format to be a bit more readablePaul Eggleton
In order to place the emphasis on information that is most important to the submitter, we need to alter the presentation in the default jinja2 template to present the commit first (if applicable), the issue (suffixed with the test name), the suggested fix (if any), and then any optional additional fields. In order to do this and at the same time allow the template a bit more control over formatting, require tests to send a dict with "id" and "issue" elements, plus optionally "fix", "commit" and "data". These are passed verbatim into the jinja2 template when formatting the summary. (As a general rule though for human readability I believe we should be expressing additional information as part of the issue / fix text rather than supplying it in field form via the data parameter.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-15summary: have --fail option filter resultsPaul Eggleton
The script has a --fail option, it seems logical that it should filter the results passed through it to include only failures rather than relying on an intermediate grep to do the same. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-15summary: tweak last part of opening paragraphPaul Eggleton
Touch up the grammar slightly. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-15Tidy up importsPaul Eggleton
Importing the functions directly from Python modules such as re and os is unusual, not to mention that Python has a built-in compile() function already. Improve readability by importing the modules as normal and calling functions within them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11Use function-style printPaul Eggleton
Important for future Python 3 compatibility. Drop one useless print statement in the process. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11create-summary: fix handling if test ID has more than 3 itemsPaul Eggleton
When I ran patchtest I ended up with IDs such as "tests.test_metadata_src_uri.SrcUri.test_src_uri_checksums_not_changed", which has one extra item beyond what the code here was expecting. Use the last three items so that it works in either situation. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11lib: Drop unused importsPaul Eggleton
These trigger dependencies on GitPython and requests and aren't actually being used right now, so remove them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11Use correct shebangPaul Eggleton
If we point to /usr/bin/python we break the ability to use the scripts within virtualenv, so use /usr/bin/env python instead. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11patchtest: print an error if no tests could be foundPaul Eggleton
If the user has invoked/set up patchtest incorrectly such that there aren't any tests, we should tell them rather than silently exiting. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-11summary: minor tweaks to formatting/grammarPaul Eggleton
* Rewrap lines * Remove erroneous - after project name * Fix first sentence to be a bit more grammatically correct Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-11-01scripts: remove unnecessary charLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-31scripts: remove fail status on series with fail stateLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-31scritps: use the same arguments names between script and templateLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-31lib: include specify branch tag if present on patch on target commitLeonardo Sandoval
With this change, merge works correctly on non-master branches. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26scripts: use https instead of ssh protocol when git cloningLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26scripts: Move PATH setup at the top of the main executable lines.Leonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26scripts: remove image command line argumentLeonardo Sandoval
kernel and rootfs command line arguments effectively replace the image argument. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26patchtest-oe: remove patchtest-oe submoduleLeonardo Sandoval
In the past, there was the intention to use patchtest-oe as git submodule, but at the end it was decided to move it apart of the project, thus patchtest is test suite agnostic. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26vagrant: remove folder and its contentLeonardo Sandoval
In the past, the vagrant project was used to manage a guest machine. Currently, we use Poky to generate and a its qemu runner to launch it. There is no need to track this folder anymore. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
2016-10-26README: plain text describing project, contribution and maintainersLeonardo Sandoval
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>