diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-16 13:00:05 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-16 13:00:05 +0000 |
commit | 351be15dc481a130ca880121b53f849e1053c687 (patch) | |
tree | 953399bafee31d9bc34e82166efefcfb44e1e7f1 /test/api/percent.sh | |
parent | cce2475889ae32e8bfff6d35dc797e6054372120 (diff) | |
download | lvm2-351be15dc481a130ca880121b53f849e1053c687.tar.gz lvm2-351be15dc481a130ca880121b53f849e1053c687.tar.xz lvm2-351be15dc481a130ca880121b53f849e1053c687.zip |
Update tests
Indent
Shell improvements - use internal function for checks
Use PVs in "" (LV and VG cannot have spaces)
Several test very starting 'dmeventd' without annoucing
it via prepade_dmeventd.
Fix some of test actually.
Diffstat (limited to 'test/api/percent.sh')
-rw-r--r-- | test/api/percent.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/api/percent.sh b/test/api/percent.sh index 516c1d6c..07b8bc65 100644 --- a/test/api/percent.sh +++ b/test/api/percent.sh @@ -1,4 +1,4 @@ -# +#!/bin/sh # Copyright (C) 2010 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. @@ -16,11 +16,12 @@ kernel_at_least 2 6 33 || skip aux prepare_devs 2 + vgcreate -c n -s 4k $vg $(cat DEVICES) -lvcreate -n foo $vg -l 5 +lvcreate -l 5 -n foo $vg lvcreate -s -n snap $vg/foo -l 2 -c 4k lvcreate -s -n snap2 $vg/foo -l 6 -c 4k -dd if=/dev/urandom of=$DM_DEV_DIR/$vg/snap2 count=1 bs=1024 +dd if=/dev/urandom of="$DM_DEV_DIR/$vg/snap2" count=1 bs=1024 lvcreate -m 1 -n mirr $vg -l 1 --mirrorlog core lvs $vg aux apitest percent $vg |