summaryrefslogtreecommitdiffstats
path: root/tests/ts/blkdiscard
Commit message (Collapse)AuthorAgeFilesLines
* tests: skip BLKDISCARD if unsupportedRuediger Meier2015-12-091-0/+5
| | | | | CC: Federico Simoncelli <fsimonce@redhat.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: blkdiscard, check return valuesRuediger Meier2015-12-091-32/+41
| | | | | CC: Federico Simoncelli <fsimonce@redhat.com> 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: introduce TS_LOOP_DEVS for cleanupRuediger Meier2015-04-141-1/+1
| | | | | | | | | | | | | | 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>
* blkdiscard: add support for steps and progressFederico Simoncelli2014-10-271-0/+27
| | | | Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
* tests: add blkdiscard offsets testFederico Simoncelli2014-10-271-0/+62
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>