From patchwork Tue Jun 6 13:37:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolay Borisov X-Patchwork-Id: 9768905 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 C0DC26034B for ; Tue, 6 Jun 2017 13:37:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B8BCE20700 for ; Tue, 6 Jun 2017 13:37:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AAB2C27F10; Tue, 6 Jun 2017 13:37:33 +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 4391420700 for ; Tue, 6 Jun 2017 13:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbdFFNhc (ORCPT ); Tue, 6 Jun 2017 09:37:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:54105 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751345AbdFFNhc (ORCPT ); Tue, 6 Jun 2017 09:37:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E86A3AB5D; Tue, 6 Jun 2017 13:37:30 +0000 (UTC) From: Nikolay Borisov To: eguan@redhat.com Cc: fstests@vger.kernel.org, Nikolay Borisov Subject: [PATCH] generic/019: Silence possible kill failure Date: Tue, 6 Jun 2017 16:37:22 +0300 Message-Id: <1496756242-16390-1-git-send-email-nborisov@suse.com> X-Mailer: git-send-email 2.7.4 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When the filesystem is force-killed in generic/019 and fsstress is compiled with DEBUG then it's possible for check_cwd() to fail. In this case fsstress would just die and invoking kill on its pid would produce an error to the output file: +./tests/generic/019: line 157: kill: (32750) - No such process Fix this possibility by ignoring the result of the output command, this won't affect the test coverage. Signed-off-by: Nikolay Borisov --- tests/generic/019 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/019 b/tests/generic/019 index 84e62f5c..3b24c87c 100755 --- a/tests/generic/019 +++ b/tests/generic/019 @@ -154,7 +154,7 @@ _workout() >> $seqres.full 2>&1 && \ _fail "failed: still able to perform integrity fsync on $SCRATCH_MNT" - kill $fs_pid + kill $fs_pid &> /dev/null wait $fs_pid wait $fio_pid