summaryrefslogtreecommitdiffstats
path: root/tests/ts/partx
Commit message (Collapse)AuthorAgeFilesLines
* partx: document -d vs. --nr and fix testHEADmasterKarel Zak2019-08-211-2/+7
| | | | | | | | | | The commit ab025087f91b66ee8e23a16bc49eb0d9bd421d65 has disabled error message, but unfortunately it keeps wrong return code. This has been fixed by commit 53ae7d60cfeacd4e87bfe6fcc015b58b78ef4555. This commit add hit about it to docs and fix regression test too. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: split partx in root and non-rootRuediger Meier2017-06-152-16/+43
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix and refactor partxRuediger Meier2017-06-151-34/+86
| | | | | | | | Subtest delete-non-existent was broken because since 2d47fa39 option --nr was missing. It wasn't noticed because we did not check stderr. Now we check all return values and output. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: consolidate rmmod scsi_debugRuediger Meier2016-10-211-4/+1Star
| | | | | | | | | - auto cleanup on test exit - Add smart timeout: Newer openSUSE systems on OBS failed to rmmod almost always. udevadm settle does not seem to have any affect. - now tests will fail if rmmod fails Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip nonroot before checking for progs in PATHRuediger Meier2015-12-101-2/+1Star
| | | | | | | | | | The least annoying and most useful order is this one: 1. check for compiled UL commands 2. check for root 3. check for loop support 4. check for external progs Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use xz instead of bzip2 for blkid imagesRuediger Meier2015-12-091-3/+4
| | | | | | | | | | xz decompression creates sparse files if possible. This saves about 1G disk space in build directory and a lot I/O and time. BTW regarding compatibility ... CentOS 7 is the first system I've met which does not install bzip2 but xz only by default. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_scsi_debug_init must not run in a subshellRuediger Meier2014-05-131-23/+24
| | | | | | | | | | | ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-071-2/+5
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-171-1/+1
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add partx --update testKarel Zak2014-01-141-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: partx tests cleanupKarel Zak2013-04-261-30/+19Star
| | | | | | | | | | * use ts_scsi_debug_init * use headers in output * use udevadm Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add partx regression testsOndrej Oprala2013-04-261-0/+92
| | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* remaining util-linux-ng to util-linuxSami Kerola2011-01-231-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add regression testsDavidlohr Bueso2010-12-091-0/+45
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>