summaryrefslogtreecommitdiffstats
path: root/tests/ts/fsck
Commit message (Collapse)AuthorAgeFilesLines
* tests: add missing ts_check_test_command callsKarel Zak2019-03-041-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: skip nonroot before checking for progs in PATHRuediger Meier2015-12-101-1/+1
| | | | | | | | | | 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: never use -o pipefailRuediger Meier2015-04-211-2/+0Star
| | | | | | | | | | | | | | | | | | | It was hard to find out that pipefail was the reason why our test-suite could have random failures for aribtrary tests, for example the ones which are using ts_device_has_uuid() or ts_mount(). Bash's pipefall option is evil! It may return error for such a simple line like this one $ echo -e "xxx\nyyy" | grep -q "xxx" because the left echo command will get SIGPIPE when grep exits after the first match. So the command line above could return an error eventhough it does exactly what we want. This patch removes any pipefail from our tests. The funny thing is that I couldn't find any case where we relied on this feature anyway. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: loop tests, don't call ts_die() with DEVICE parameterRuediger Meier2015-04-141-3/+3
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-141-3/+2Star
| | | | | | | | | | | | | | We are maintaining an array TS_LOOP_DEVS to de-initialize devices always on exit. Until now there was no cleanup in ts_skip(). The downside is that we can't execute ts_device_init() in a subshell anymore. The device is returned via global variable TS_LODEV, similar like we do already in ts_scsi_debug_init(). Tests which don't use ts_device_init() to create loop devices may use ts_register_loop_device() to get them cleaned up later. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check for mkfs.ext{2,3,4}Ruediger Meier2014-05-151-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: ts_device_init requires loop supportRuediger Meier2014-05-131-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-071-0/+4
| | | | | 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: grammar fixesDavidlohr Bueso2011-08-171-1/+1
| | | | | | Trivial change, "Cannot found" to "Cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update fsck.ismounted testKarel Zak2009-10-151-1/+1
| | | | | | | | The latest version of the lib/test_ismounted binary returns absolute mountpoint path too. This patch removes the path from test output (the path is variable). Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck:ismounted reg.testKarel Zak2009-02-181-0/+45
Signed-off-by: Karel Zak <kzak@redhat.com>