aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/13_test_gbp_pq.py
Commit message (Collapse)AuthorAge
* tests.testutils: helpers for checking existence of commandsMarkus Lehtonen2018-03-01
| | | | | | | | | Add new have_cmd() helper for checking if a command is available, and, a skip_without_cmd() decorator for skipping tests in case a command is missing. Convert existing checks for commands to use these new functions. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* pq: Make sure apply_and_commit_patch encodes the author utf-8Guido Günther2017-11-06
| | | | | | | | | Git itself doesn't care but Python wants a bytestring. This only matters when using the C locale. We delay conversion so we don't have to handle fallback_author separately. We can't convert unconditionally since pq-rpm is allowed to pass in a None author.
* pq: import pq branch on switchGuido Günther2017-10-20
| | | | Closes: #761166
* pq: import patches before rebaseGuido Günther2017-10-19
| | | | | | if the pq branch doesn't exist yet. Closes: #876800
* patch_series: don't let "git mailinfo" sanitize the subjectGuido Günther2017-08-31
| | | | | | | This would strip away text in []. This improves the import/export round trip. Closes: #872354
* git: Don't decode diff outputGuido Günther2017-08-28
| | | | The output can be in any encoding so assuming utf-8 is plain wrong
* tests: remove duplication in test optionsGuido Günther2017-08-22
|
* pq-rpm: Correctly pass abbrev to format-patchGuido Günther2017-08-22
| | | | broken by 75e18fc5bb4831df924bc708130b0a6ab311a230
* pq: use more gittish commit message in --commitGuido Günther2017-08-19
| | | | Use present instead of past tense
* pq: don't create empty pq branch on rebase and switchGuido Günther2017-08-05
| | | | | | We always want to start from an imported series. Thanks: Chris Lamb for the reproducer
* pq: port to python3Guido Günther2017-08-02
|
* pq: unbreak --commit when patch series becomes emptyGuido Günther2017-03-14
| | | | | We skipped the commit when the patch series became completely empty but we want to commit that change too.
* pq: Don't fail --commit on empty commitsGuido Günther2016-12-23
| | | | | | | | So far we would fail empty commits with the confusing error $ gbp pq export --commit gbp:info: Generating patches from git (debian/sid..patch-queue/debian/sid) gbp:error: Error running git commit:
* pq: make TestFromTAG tests silentGuido Günther2016-09-28
|
* 13_test_gbp_pq: flake8 cleanGuido Günther2016-09-12
|
* pq: Handle unmerged debian branches (tests)Maximiliano Curia2016-09-07
|
* pq test: Add missing pq-from parameterMaximiliano Curia2016-09-07
|
* Change "it's" to "its" in comments where appropriateAnthony Fok2015-09-10
|
* Allow exported patches to be renumbered and the patch number prefix format ↵Carlos Maddela2015-07-10
| | | | | | | | | | | | | | to be specified as an option Now that gbp-pq preserves patch names on import and export the --[no-]patch-numbers options have been rendered largely useless unless the patch queue commits are amended with the Gbp[-Pq]: Name tags removed. The options remain useful if support for renumbering is added. It's also handy to allow the choice of the format to use for the numeric prefixes. Closes: #790890 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* pq: Allow to preserve the patch name on import/exportGuido Günther2015-06-02
| | | | Closes: #761161
* Make pylint happyGuido Günther2015-06-02
|
* tests: minor test case cleanupsGuido Günther2015-03-27
| | | | Remove unused imports, remove unused variables or actually use them
* Use open() instead of file()Guido Günther2015-02-20
| | | | The former is supported with python3
* Use relative import for testutilsGuido Günther2015-02-20
|
* parse_gbp_commands: support command filteringGuido Günther2015-02-08
| | | | | | | | | When we write out patches to subdirs using a topic we want to filter out this topic from the commit message. Support for this was lost in 7ce15d2434ee42aa5a1afce3d03069c5efb2db1b add it back. Also fix parsing of the deprecated commands.
* pq: Generate new style Gbp-Pq: Topic <topic> entriesGuido Günther2015-02-08
| | | | We shouldn't generate the deprecated ones
* pq: move switch_pq() to commonMarkus Lehtonen2014-12-05
| | | | | | So that it can be re-used by the upcoming pq-rpm tool. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Allow to always drop pq branch after exportGuido Günther2014-09-12
| | | | Closes: #761160
* pq: rewrite patch export functionalityMarkus Lehtonen2013-10-31
| | | | | | | | | | | | | | | Use our own function for constructing the patch files instead of using the format-patch command of git. This way, we get the desired output format directly, without the need for the error-prone "format-patch, parse patch files, mangle and re-write patch files" cycle. Also, fix patch naming in patch generation when '--no-patch-numbers' is used. Previously, multiple commits with the same subject resulted in multiple patches having the same filename. This lead into broken series with missing patches as patch files were overwritten by the topmost commit. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Silence test_debian_missing_authorGuido Günther2013-04-30
| | | | and better use the output for verification
* tests: Use tempfile.mkdtemp to create temp dirs for testsThomas Koch2013-04-08
| | | | | | | This puts test dirs below /tmp which often is a tmpfs. All tests include the context module which consolidates tmpdir creation and cleanup, undoes a chdir in teardown and silences log messages.
* pq: do author guessing outside the apply_patch functionsMarkus Lehtonen2013-01-16
| | | | | | | | | Call the author parsing/guessing function outside the apply patch functions. This way, the caller can decide when to do the guessing, and with which parameters. Now the apply_patch functions do what their name suggests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Test gbp.pq.common.write_patchGuido Günther2012-11-24
|
* Test if setting a topic worksGuido Günther2012-11-23
|
* pq: Allow to pass in custom fucntion to fetch authorship informationGuido Günther2012-11-23
| | | | | so the RPM based tools don't need to rely on a control file but can e.g. look at the spec file.
* Test apply_and_commit_patchGuido Günther2012-11-23