summaryrefslogtreecommitdiff
path: root/tests/11_test_dch_main.py
AgeCommit message (Collapse)AuthorFilesLines
2022-11-28porting code to python3.x with os patchbiao716.wang1-9/+3
Change-Id: I3deda71d6bde7c3363800d79d2e9ae6998bdb9e7 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2014-11-14CentOS compatibility: fix testsMarkus Lehtonen1-1/+5
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-01-07tests: adapt dch tests for older devscriptsMarkus Lehtonen1-17/+21
Determine the default urgency level by determining the version number of the dch tool from command line. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-12-17Adjust test cases to newer devscriptsGuido Günther1-15/+15
Closes: #732384
2013-08-28Use open() instead of file()Guido Günther1-1/+1
since the later doesn't exist in python3
2013-04-30trivial: simplify option assignmentGuido Günther1-19/+10
to ease readability
2013-04-26tests: Fix tests for UbuntuMarkus Lehtonen1-10/+20
On Ubuntu dch produces different version numbering. Adapt tests for this. Adds a jew class to parse '/etc/lsb-release' to determine the distribution and it's codename to dynamically adapt tests accordingly. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-25tests: fix for older dchMarkus Lehtonen1-2/+2
Prevent dch from asking user input during tests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-04-08tests: Use tempfile.mkdtemp to create temp dirs for testsThomas Koch1-2/+3
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.
2013-04-06Add urgency management.Daniel Dehennin1-0/+29
* tests/11_test_dch_main.py: test the new --urgency option to dch.main(). Add only meaningful tests, i.e. options alone and combined with --release and --snapshot. * git-dch (fixup_section): Manage "urgency" option. (main): Add version_group option "-U" and "--urgency" to set the urgency level of the entry. * docs/manpages/git-dch.sgml: Update documentation for new option.
2013-04-06Add option to manage distribution fields for non snapshot mode.Daniel Dehennin1-98/+154
The snapshot mode fails to merge two "debian/changelog" entries if the distribution is not "UNRELEASED". * tests/11_test_dch_main.py: test the new --distribution option to dch.main(). Add only meaningful tests, i.e. options alone and combined with --release and --snapshot. * git-dch (fixup_section): Rename as it's used to fix header in addition to trailer, this require a new named parameter "options". (main): Add version_group option "-D" and "--distribution" to specify the distribution name. Add version_group option "--force-distribution" to force the provided distribution to be used, used by "dch". Rename fixup_trailer() to fixup_section() and add options as parameters. * docs/manpages/git-dch.sgml: Update documentation for new options. Closes: #646684
2012-11-23tests: make tests a Python moduleMarkus Lehtonen1-1/+1
Makes it possible to reuse code between various tests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-08-01Skip tests requiring devscripts if dch is not thereGuido Günther1-0/+1
so tests don't fail on rpm based systems.
2012-07-31Test behavior of gbp.scripts.dch.main().Daniel Dehennin1-0/+273
* tests/11_test_dch_main.py: Test common cases with "--release" and "--snapshot". Try 2 consecutive snapshots to check for merged entries.