public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: fstests@vger.kernel.org
Cc: Hugh Dickins <hughd@google.com>, Theodore Ts'o <tytso@mit.edu>
Subject: [PATCH 1/4] xfstests: remove dependency on /proc/partitions for generic/312
Date: Sun, 21 Feb 2016 23:26:08 -0500	[thread overview]
Message-ID: <1456115171-13191-2-git-send-email-tytso@mit.edu> (raw)
In-Reply-To: <1456115171-13191-1-git-send-email-tytso@mit.edu>

From: Hugh Dickins <hughd@google.com>

We don't need to do this test at all, since _scratch_mkfs_sized will
do this check for us.   This allows this test to work with tmpfs.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 tests/generic/312 | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tests/generic/312 b/tests/generic/312
index b570814..669e19b 100755
--- a/tests/generic/312
+++ b/tests/generic/312
@@ -51,11 +51,6 @@ _require_scratch
 
 # 5G in byte
 fssize=$((2**30 * 5))
-required_blocks=$(($fssize / 1024))
-dev_blocks=$(grep -w $(_short_dev $SCRATCH_DEV) /proc/partitions | $AWK_PROG '{print $3}')
-if [ $required_blocks -gt $dev_blocks ];then
-	_notrun "this test requires \$SCRATCH_DEV has ${fssize}B space"
-fi
 
 rm -f $seqres.full
 _scratch_mkfs_sized $fssize >>$seqres.full 2>&1
-- 
2.5.0


  reply	other threads:[~2016-02-22  4:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22  4:26 [PATCH 0/4] Remaining patches to fix up tmpfs testing Theodore Ts'o
2016-02-22  4:26 ` Theodore Ts'o [this message]
2016-02-22  7:37   ` [PATCH 1/4] xfstests: remove dependency on /proc/partitions for generic/312 Christoph Hellwig
2016-02-22  4:26 ` [PATCH 2/4] generic: add _require_odirect for generic/125 Theodore Ts'o
2016-02-22  7:37   ` Christoph Hellwig
2016-02-22  4:26 ` [PATCH 3/4] defrag: require extents support for ext4 defrag Theodore Ts'o
2016-02-22  7:37   ` Christoph Hellwig
2016-02-22  4:26 ` [PATCH 4/4] common: filter warning messages from mkfs.ext4 Theodore Ts'o
2016-02-22  7:38   ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456115171-13191-2-git-send-email-tytso@mit.edu \
    --to=tytso@mit.edu \
    --cc=fstests@vger.kernel.org \
    --cc=hughd@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox