aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testutils
Commit message (Collapse)AuthorAge
* gbp: Fix misc spelling in user visible output and commentsOtto Kekäläinen2024-01-12
|
* 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>
* 8bit GuidoGuido Günther2018-02-26
|
* gbplogtaster: capture INFO and DEBUG log levels tooGuido Günther2018-01-29
| | | | | | | | This allows to test for certain features more easily and to use it not only in the error case. Using two different streams allows us to test that messages still end up on stderr or stdout correctly.
* tests.testutils: fix stderr captureMarkus Lehtonen2018-01-18
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: use encoding when opening files for checks and fixturesGuido Günther2017-11-06
| | | | so we don't fail on non utf-8 locales
* DebianGitTestRepo: allow to set file modeGuido Günther2017-11-06
| | | | This allows us to write binary files as well
* Kill six.StringIOGuido Günther2017-10-20
|
* tests: move patch_popen to testutilsGuido Günther2017-08-02
|
* Use sane default for OsRelese fileGuido Günther2017-08-02
|
* gbplogtester: allow to match anywhere in the logGuido Günther2017-01-11
|
* import-orig: Handle download errors properlyGuido Günther2016-12-26
| | | | | This introduces tests that reach out to the network. These are disabled by default.
* test_supercommand: test --list-cmdsGuido Günther2016-12-26
|
* pep8/pyflakes cleanupsGuido Günther2016-09-12
|
* tests: Check help of all rpm commands as wellGuido Günther2016-07-04
| | | | | Since we need to iterate over all commands in other tests we add a decorator.
* debiantestgitrepo: Allow to inject repo class nameGuido Günther2016-06-28
| | | | This allows us to use the helpers for other repo types as well
* gbplogtester: Check if we have enough log linesGuido Günther2016-03-13
|
* Change "it's" to "its" in comments where appropriateAnthony Fok2015-09-10
|
* tests.testutils: add ls_dir(), ls_tar() and ls_zip()Markus Lehtonen2015-08-19
| | | | | | | New helper functions for listing the content of a directory, tarball and a zip archive. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* call debchange instead of dchEvgeni Golov2015-06-30
| | | | | | | | | Call the tool by its actual name instead of the abbriviation. dch is a symlink to debchange, which is not present on Fedora [1]. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1236122 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Use six.StringIOGuido Günther2015-03-27
| | | | | | to work towards Python3 support Gbp-Dch: Ignore
* testutils: Add a context manager to capture stderrGuido Günther2015-03-27
| | | | and use it to test the help output
* testutils: Fix __all__Guido Günther2015-03-27
| | | | The values weren't correctly seperated
* gbplogtester: Reliably remove all handlersGuido Günther2015-03-27
| | | | | 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.
* gbplogtester: Make sure log capture start is followed by a log capture stopGuido Günther2015-03-27
|
* gbplogtester: add helper to test for empty logGuido Günther2015-03-27
|
* Remove unused importGuido Günther2015-02-21
| | | | and pylint exception that doesn't trigger
* Use relative importGuido Günther2015-02-20
| | | | so Python3 can cope as well
* Use six.StringIOGuido Günther2015-02-20
| | | | | | to work towards Python3 support Gbp-Dch: Ignore
* testutils: split out DebianGitTestRepoGuido Günther2015-01-25
| | | | Gbp-Dch: Ignore
* testutils: Move log test helpers to separate classGuido Günther2015-01-25
| | | | so we can use them in the unit tests as well
* Move testutils to separate moduleGuido Günther2015-01-25