From patchwork Sat Dec 29 02:34:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hou Tao X-Patchwork-Id: 10744729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 263A913B5 for ; Sat, 29 Dec 2018 02:31:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16F4528DEF for ; Sat, 29 Dec 2018 02:31:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF7E328DF9; Sat, 29 Dec 2018 02:31:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87CF828DF2 for ; Sat, 29 Dec 2018 02:31:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727451AbeL2Cba (ORCPT ); Fri, 28 Dec 2018 21:31:30 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:16670 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728185AbeL2Cb3 (ORCPT ); Fri, 28 Dec 2018 21:31:29 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E278DAEFBC213 for ; Sat, 29 Dec 2018 10:31:25 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Sat, 29 Dec 2018 10:31:22 +0800 From: Hou Tao To: CC: Subject: [PATCH 2/5] generic/019: check scratch device is a block device or not Date: Sat, 29 Dec 2018 10:34:49 +0800 Message-ID: <20181229023452.28074-3-houtao1@huawei.com> X-Mailer: git-send-email 2.16.2.dirty In-Reply-To: <20181229023452.28074-1-houtao1@huawei.com> References: <20181229023452.28074-1-houtao1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To ensure "blockdev --getsz $SCRATCH_DEV" will succeed. Signed-off-by: Hou Tao --- tests/generic/019 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/generic/019 b/tests/generic/019 index 32db36fc..8e1c9331 100755 --- a/tests/generic/019 +++ b/tests/generic/019 @@ -22,6 +22,7 @@ status=1 # failure is the default! _supported_fs generic _supported_os Linux _require_scratch +_require_block_device $SCRATCH_DEV _require_fail_make_request SYSFS_BDEV=`_sysfs_dev $SCRATCH_DEV`