summaryrefslogtreecommitdiff
path: root/tests/t6000-dm.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-22 10:50:24 +0100
committerJim Meyering <meyering@redhat.com>2010-11-22 12:10:53 +0100
commitd5bb7441dd6c454fab208401f6b2d37f630d15fd (patch)
tree498fefbc2a3204dc23de94b7f8cd5a7d2aa9f304 /tests/t6000-dm.sh
parent9fa0e1800db5b9f094ae481fd95a51da03f19e95 (diff)
downloadparted-d5bb7441dd6c454fab208401f6b2d37f630d15fd.tar.gz
tests: avoid spurious failure
* tests/t6000-dm.sh: Sanitize directory name, to avoid spurious failure due to e.g., mount-related differences.
Diffstat (limited to 'tests/t6000-dm.sh')
-rwxr-xr-xtests/t6000-dm.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t6000-dm.sh b/tests/t6000-dm.sh
index 23a70c3..b20f4cd 100755
--- a/tests/t6000-dm.sh
+++ b/tests/t6000-dm.sh
@@ -72,11 +72,12 @@ for type in linear ; do
compare out /dev/null || fail=1
parted -s "$dev" print > out 2>&1 || fail=1
+ sed 's/^Disk .*: /Disk DEV: /' out > k; mv k out
# Create expected output file.
cat <<EOF >> exp || fail=1
Model: Linux device-mapper ($type) (dm)
-Disk $dev: 524kB
+Disk DEV: 524kB
Sector size (logical/physical): 512B/512B
Partition Table: msdos