Skip to content

threexc/patchtest2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

patchtest2

patchtest2 is an effort to refactor the existing patchtest tool (part of the Yocto Project) to use modern Python idioms and reduce complexity. You can find out more about the tool here:

Patchtest

PyPI - Version PyPI - Python Version


Table of Contents

Installation

Right now, the tool is only installable manually. First, setup a virtualenv:

python3 -m venv venv

Start it:

source venv/bin/activate

Then install with pip:

pip install .

Examples

Test a patch (the sample file is generated using git format-patch on commit d7de60340ec9 in this repository):

(venv) tgamblin@workbox:~/git/patchtest2$ patchtest --patch 0001-README.md-update-Installation-instructions.patch
PASS: test_mbox_signed_off_by_presence on [PATCH] README.md: update Installation instructions
PASS: test_mbox_shortlog_format on [PATCH] README.md: update Installation instructions
FAIL: test_mbox_commit_message_presence on [PATCH] README.md: update Installation instructions (Please include a commit message on your patch explaining the change)

License

patchtest2 is distributed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages