summaryrefslogtreecommitdiffstats
path: root/tests/ts/swapon/devname
Commit message (Collapse)AuthorAgeFilesLines
* 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: 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/+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: remove LD_LIBRARY_PATH from swapon testsKarel Zak2012-04-181-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: grammar fixesDavidlohr Bueso2011-08-171-2/+2
| | | | | | 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: swapon workaround for libtool wrapperKarel Zak2009-10-131-1/+2
| | | | | | | | | | The swapon command behaviour depends on program name (argv[0] = swapon | swapoff). It means we cannot use the libtool wrapper script in our regression tests. It seems better to call the binaries directly with proper LD_LIBRARY_PATH. This is probably less portable, but good enough for our tests. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/swaponKarel Zak2009-02-111-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: create subdirs for test scriptsKarel Zak2009-02-111-0/+46
Signed-off-by: Karel Zak <kzak@redhat.com>