From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22846 invoked by alias); 23 Oct 2011 15:39:09 -0000 Received: (qmail 22828 invoked by uid 9737); 23 Oct 2011 15:39:08 -0000 Date: Sun, 23 Oct 2011 15:39:00 -0000 Message-ID: <20111023153908.22826.qmail@sourceware.org> From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test t-mdata-strings.sh Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00100.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-10-23 15:39:08 Modified files: test : t-mdata-strings.sh Log message: Expect failure with real /dev dir As udev is for now incapable to create such devices turn this test error into warning. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-mdata-strings.sh.diff?cvsroot=lvm2&r1=1.6&r2=1.7 --- LVM2/test/t-mdata-strings.sh 2011/01/05 00:16:20 1.6 +++ LVM2/test/t-mdata-strings.sh 2011/10/23 15:39:08 1.7 @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2008 Red Hat, Inc. All rights reserved. +# Copyright (C) 2008-2011 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -13,8 +13,9 @@ . lib/test -aux prepare_devs 1 +aux prepare_devs 2 +# for udev impossible to create pv_ugly="__\"!@#\$%^&*,()|@||'\\\"__pv1" # 'set up temp files, loopback devices' @@ -23,9 +24,11 @@ dev1=$(dirname "$dev1")/$PREFIX$pv_ugly # 'pvcreate, vgcreate on filename with backslashed chars' -pvcreate "$dev1" -vgcreate $vg "$dev1" - +created=$dev1 +# when used with real udev without fallback, it will fail here +pvcreate "$dev1" || created=$dev2 +pvs | should grep $dev1 +vgcreate $vg "$created" # 'no parse errors and VG really exists' vgs 2>err not grep "Parse error" err;