[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: avoid spurious failure of the root-only many-partitions t
From: |
Jim Meyering |
Subject: |
[PATCH] tests: avoid spurious failure of the root-only many-partitions test |
Date: |
Wed, 26 May 2010 21:55:15 +0200 |
FYI, without this, the test would fail when run with e.g.,
PARTED_SECTOR_SIZE=1024
>From 53f87006bb430d91ae696d7395d2d8b462a22699 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Wed, 26 May 2010 12:19:07 +0200
Subject: [PATCH] tests: avoid spurious failure of the root-only many-partitions
test
* tests/t9040-many-partitions.sh: When creating a scsi_debug
device, honor the block size suggested by the PARTED_SECTOR_SIZE
environment variable, and thus required in expected output.
---
tests/t9040-many-partitions.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/t9040-many-partitions.sh b/tests/t9040-many-partitions.sh
index c41ecfc..4c0b7ea 100644
--- a/tests/t9040-many-partitions.sh
+++ b/tests/t9040-many-partitions.sh
@@ -45,7 +45,7 @@ n_sectors=$(($start + n_partitions * partition_sectors +
gpt_slop))
sectors_per_MiB=$((1024 * 1024 / ss))
n_MiB=$(((n_sectors + sectors_per_MiB - 1) / sectors_per_MiB))
# create memory-backed device
-scsi_debug_setup_ dev_size_mb=$n_MiB > dev-name ||
+scsi_debug_setup_ sector_size=$ss dev_size_mb=$n_MiB > dev-name ||
skip_test_ 'failed to create scsi_debug device'
scsi_dev=$(cat dev-name)
--
1.7.1.342.g1c280
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] tests: avoid spurious failure of the root-only many-partitions test,
Jim Meyering <=