~ubuntu-branches/debian/sid/lvm2/sid

« back to all changes in this revision

Viewing changes to test/shell/mdata-strings.sh

  • Committer: Package Import Robot
  • Author(s): Bastian Blank
  • Date: 2013-03-03 12:33:47 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130303123347-smfwei6dodkdth55
Tags: 2.02.98-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
. lib/test
15
15
 
16
16
aux prepare_devs 2
 
17
aux lvmconf 'devices/global_filter = [ "a|.*LVMTEST.*dev/mapper/.*pv[0-9_]*$|", "r|.*|" ]'
17
18
 
18
19
# for udev impossible to create
19
20
pv_ugly="__\"!@#\$%^&*,()|@||'\\\"__pv1"
20
21
 
21
 
# 'set up temp files, loopback devices' 
 
22
# 'set up temp files, loopback devices'
22
23
name=$(basename "$dev1")
23
24
dmsetup rename "$name" "$PREFIX$pv_ugly"
24
 
dev1=$(dirname "$dev1")/$PREFIX$pv_ugly
25
 
 
26
 
dmsetup table | grep -F "$pv_ugly"
27
 
 
28
 
# 'pvcreate, vgcreate on filename with backslashed chars' 
29
 
created=$dev1
 
25
dev1=$(dirname "$dev1")/"$PREFIX$pv_ugly"
 
26
 
 
27
dm_table | grep -F "$pv_ugly"
 
28
 
 
29
# 'pvcreate, vgcreate on filename with backslashed chars'
 
30
created="$dev1"
30
31
# when used with real udev without fallback, it will fail here
31
 
pvcreate "$dev1" || created=$dev2
 
32
pvcreate "$dev1" || created="$dev2"
32
33
pvdisplay | should grep -F "$pv_ugly"
33
34
should check pv_field "$dev1" pv_name "$dev1"
34
35
vgcreate $vg "$created"
35
 
# 'no parse errors and VG really exists' 
36
 
vgs 2>err
37
 
not grep "Parse error" err;
38
 
vgs $vg
39
 
 
 
36
# 'no parse errors and VG really exists'
 
37
vgs $vg 2>err
 
38
not grep "Parse error" err