1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/test/lib
Zdenek Kabelac 8e5305f630 tests: correct usage of pipe
This is somewhat tricky - for test suite we keep using
'set -e -o pipefail'  - the effect here is - we get error report
from any 'failing' command in whole pipeline - thus when something
like this:   'lvs | head -1'  is used - and  'head' finishes before
lead 'lvs' is done - it recieves SIGPIPE and exits with error,
and somewhat misleading gets occasionally reported depending
of speed of commands.

For this case we have to avoid using standard pipes and rather
switch to using streamed results with temporary output file.
This is all nicely handled with bash feature '< <()'.

For more info:
https://stackoverflow.com/questions/41516177/bash-zcat-head-causes-pipefail
2018-02-19 16:45:10 +01:00
..
aux.sh tests: longer startup timeout for daemons with valgrind 2018-01-17 14:45:48 +01:00
brick-shelltest.h tests: correcting kernel version test 2016-09-20 22:50:43 +02:00
check.sh tests: check.sh simplify in_sync 2017-07-11 16:26:12 +02:00
flavour-ndev-cluster-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-cluster.sh tests: direct control of lvm1 usage in tests 2016-03-03 14:43:19 -06:00
flavour-ndev-lvmetad-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-lvmetad.sh tests: export shell vars 2015-03-19 11:23:44 +01:00
flavour-ndev-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-ndev-vanilla.sh tests: direct control of lvm1 usage in tests 2016-03-03 14:43:19 -06:00
flavour-udev-cluster-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-cluster.sh tests: direct control of lvm1 usage in tests 2016-03-03 14:43:19 -06:00
flavour-udev-lvmetad-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-lvmetad.sh tests: export shell vars 2015-03-19 11:23:44 +01:00
flavour-udev-lvmlockd-dlm.sh Add lvmlockd 2015-07-02 15:42:26 -05:00
flavour-udev-lvmlockd-sanlock.sh Add lvmlockd 2015-07-02 15:42:26 -05:00
flavour-udev-lvmlockd-test.sh tests: fix check_lvmlockd_test 2016-04-15 12:35:20 -05:00
flavour-udev-lvmpolld.sh lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00
flavour-udev-vanilla.sh tests: direct control of lvm1 usage in tests 2016-03-03 14:43:19 -06:00
get.sh tests: correct usage of pipe 2018-02-19 16:45:10 +01:00
harness.c doc: change fsf address 2016-01-21 12:11:37 +01:00
inittest.sh tests: allow override of LVM_LOG_FILE_MAX_LINES 2017-10-26 14:04:58 +02:00
lvm-wrapper.sh tests: scripts double quote 2017-07-10 14:23:53 +02:00
mke2fs.conf tests: add mke2fs.conf 2016-07-04 17:40:25 +02:00
not.c tests: Revert "tests: not redirect strderr to stdout" 2016-09-13 13:23:47 +02:00
runner.cpp tests: capture and print thrown errors 2015-03-11 21:17:23 +01:00
test-corosync-conf Add lvmlockd 2015-07-02 15:42:26 -05:00
test-dlm-conf Add lvmlockd 2015-07-02 15:42:26 -05:00
test-sanlock-conf test: add make check_lvmlockd_test 2016-02-22 09:36:35 -06:00
utils.sh tests: use nonflusing status 2017-11-11 01:00:35 +01:00