From patchwork Sat Nov 12 16:47:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "hch@infradead.org" X-Patchwork-Id: 9424275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E63E60233 for ; Sat, 12 Nov 2016 16:47:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71951293CB for ; Sat, 12 Nov 2016 16:47:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54E8D2974E; Sat, 12 Nov 2016 16:47:22 +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=-6.9 required=2.0 tests=BAYES_00,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 E6C19293CB for ; Sat, 12 Nov 2016 16:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753254AbcKLQrV (ORCPT ); Sat, 12 Nov 2016 11:47:21 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:41235 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbcKLQrU (ORCPT ); Sat, 12 Nov 2016 11:47:20 -0500 Received: from hch by bombadil.infradead.org with local (Exim 4.85_2 #1 (Red Hat Linux)) id 1c5bSa-0004kb-7E for fstests@vger.kernel.org; Sat, 12 Nov 2016 16:47:20 +0000 Date: Sat, 12 Nov 2016 08:47:20 -0800 From: Christoph Hellwig To: fstests@vger.kernel.org Subject: [PATCH] fstests: fix error redirection in generic/256 Message-ID: <20161112164720.GA18127@infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Not sure if my shell is the problem here, but I need this explicit redirection to ignore the error output from mkdir and xfs_io, otherwise the test fails due to the error messages from these commands. Signed-off-by: Christoph Hellwig --- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tests/generic/256 b/tests/generic/256 index cfbf790..2db22cd 100755 --- a/tests/generic/256 +++ b/tests/generic/256 @@ -80,7 +80,7 @@ _fill_fs() { # Creation of files or folders # must not be done as root or # reserved blocks will be consumed - _user_do "mkdir -p $dir &> /dev/null" + _user_do "mkdir -p $dir > /dev/null 2>&1" if [ $? -ne 0 ] ; then return 0 fi @@ -93,7 +93,7 @@ _fill_fs() { while [ $file_size -ge $block_size ] do bytes_written=0 - _user_do "$XFS_IO_PROG -f -c \"pwrite 0 $file_size\" $dir/$file_count.bin &> /dev/null" + _user_do "$XFS_IO_PROG -f -c \"pwrite 0 $file_size\" $dir/$file_count.bin > /dev/null 2>&1" if [ -f $dir/$file_count.bin ] then