summaryrefslogtreecommitdiff
path: root/tests/testutils.py
AgeCommit message (Collapse)Author
2014-01-07tests: adapt dch tests for older devscriptsMarkus Lehtonen
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-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-08-21Move MockedChangelog to testutilsGuido Günther
and allow to specify the content so we can reuse it for other dch tests.
2013-04-26tests: Fix tests for UbuntuMarkus Lehtonen
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-13Introduce Source classGuido Günther
so we don't have to expose all the details of Debian's different files and conventions.
2013-04-08tests: Use tempfile.mkdtemp to create temp dirs for testsThomas Koch
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-01-16Add component test initializationGuido Günther
very heavily based on code by Markus Lehtonen
2013-01-16tests.testutils: baseclass for testing commandline toolsMarkus Lehtonen
Introduce a new baseclass to be utilized in testing the git-buildpackage command line tools. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-24Test gbp.pq.common.write_patchGuido Günther
2012-11-23testutils: create missing directories when adding a fileGuido Günther
2012-01-10Allow to specify the upstream tree via --upstream-treeGuido Günther
without the indirection to --upstream-branch.