Age | Commit message (Collapse) | Author |
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
and use it to test the help output
|
|
The values weren't correctly seperated
|
|
Capture its output and only dump it on failure. This makes "gbp
import-orig" and test runs less verbose.
|
|
We allow to substitute stderr, stdout and error_reason in run_error now.
These changes the API for derived classses slightly so fix them up as
well.
|
|
We want to test no prefix, 'gbp-' and 'git-'.
|
|
So far we were modifying the list of handlers in place which resulted in
all handlers being removed at the second call to _capture_log only.
|
|
|
|
|
|
Remove unused imports, remove unused variables or actually use them
|
|
For defining a Git treeish which to look into, instead of the current
working copy.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
and pylint exception that doesn't trigger
|
|
Types are classes in python3 so we get 'class' instead of 'type'.
Ignore that detail in the matcher since it's not relevanthere.
|
|
Provides better error messages as is more consistent as eq_ was already
used in some test cases.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
|
|
since searching both isn't supported in Python3. Since the tests are run
from the toplevel dir we'll pick up the right scripts.
|
|
so we see all git commands
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
so Python3 can cope as well
|
|
Python3 returns a dict_items obj
|
|
The former is supported with python3
|
|
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
Python3 does not return None anymore
|
|
Gbp-Dch: Ignore
|
|
User might have a system and/or user specific gbp config files. Disable
these config files so that they don't affect the component tests.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
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.
|
|
We shouldn't generate the deprecated ones
|
|
We deprecate sections starting with git- and gbp- to reduce the
confusion about what gets parsed first.
|
|
Gbp-Dch: Ignore
|
|
so we can use them in the unit tests as well
|
|
|
|
Initial version of gbp-pq-rpm - a tool for managing patch queues for rpm
packages. The functionality more or less corresponds to that of the
(Debian) gbp-pq. The only major difference probably being (in addition
to the obvious of working with .spec files instead of debian/) is that
patches are always imported on top of the upstream version, not on top
of the packaging branch (which might not even contain any source code).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Olev Kartau <olev.kartau@intel.com>
|
|
A step towards being able to run GBP tools from subdirectories.
Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root
of the working directory and git metadata directory, respectively.
Also, adds a new method _read_config_file() in preparation for
supporting per-tree config files.
Fixes tests.test_Config: currently the only correct way to define the
config file(s) to be parsed is by using the GBP_CONF_FILES environment
variable.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
For selecting whether to dump all the files recursively or just the top
level directory of the tree.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Simple wrapper to the git-status command.
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Make difference between regular files and directories, eliminating the
requirement of listing directories in the file list.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This is a method of getting the filename and status information of a
diff. That is, a list of files that changed and their status, "added",
"modified" etc.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
So that it can be re-used by the upcoming pq-rpm tool.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Preventing a infinite recursion which can be triggered by gbp pq export
--commit.
|
|
Closes: #761160
|
|
This avoids spurious error messages during test runs.
|
|
to avoid pristine-tar showing up in the matched branches
|