summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-12-10 20:47:30 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2015-12-10 21:01:24 +0100
commit0688dbbc5303ee99709f202a023e7b96a515f6aa (patch)
treea3ea4478c00ef36e62a6ca67f72c4cab70e9ed55
parentcd8e95d9337207a8f87a6f68dc9b1db7e3828bbf (diff)
downloadlvm2-0688dbbc5303ee99709f202a023e7b96a515f6aa.tar.gz
tests: fix logging
Actually file redirection must be before stderr redir.
-rw-r--r--test/shell/mdata-strings.sh2
-rw-r--r--test/shell/thin-resize-match.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/shell/mdata-strings.sh b/test/shell/mdata-strings.sh
index fda09ecd6..d20234b99 100644
--- a/test/shell/mdata-strings.sh
+++ b/test/shell/mdata-strings.sh
@@ -37,7 +37,7 @@ dm_table | grep -F "$pv_ugly"
created="$dev1"
# when used with real udev without fallback, it will fail here
pvcreate "$dev1" || created="$dev2"
-pvdisplay 2>&1 | tee >err
+pvdisplay 2>&1 | tee err
should grep -F "$pv_ugly" err
should check pv_field "$dev1" pv_name "$dev1"
vgcreate $vg "$created"
diff --git a/test/shell/thin-resize-match.sh b/test/shell/thin-resize-match.sh
index d5481e24d..4c6332d39 100644
--- a/test/shell/thin-resize-match.sh
+++ b/test/shell/thin-resize-match.sh
@@ -34,7 +34,7 @@ check lv_field $vg/$lv1 size "2.00m"
# prepare 2097152 file content
seq 0 315465 > 2M
md5sum 2M | cut -f 1 -d ' ' | tee MD5
-dd if=2M of="$DM_DEV_DIR/mapper/$vg-$lv1" bs=512K conv=fdatasync 2>&1 >log &
+dd if=2M of="$DM_DEV_DIR/mapper/$vg-$lv1" bs=512K conv=fdatasync >log 2>&1 &
#dd if=2M of="$DM_DEV_DIR/mapper/$vg-$lv1" bs=2M oflag=direct &
# give it some time to fill thin-volume