Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp115889img; Wed, 20 Mar 2019 15:29:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkn4Q9cOXXS7uOrEUNdcrTxW7utZEPxfszVj+EKh4KN+SBRejJPzQZvPZ/YA+tUfDoXpV7 X-Received: by 2002:a17:902:7e46:: with SMTP id a6mr188554pln.150.1553120996618; Wed, 20 Mar 2019 15:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553120996; cv=none; d=google.com; s=arc-20160816; b=E1aLfMGBE6x+RKSkzngb6U+5pT8T0NFpkVCtB8LQWa6IWT+hD4YqfmhsNjz2tsMLfm Fu4Sdn26itwNCJ+qbTlajMZkSWgwy6z3z5eJxhyOdYr23ZzSQ7qW8FTWrj0K4q+1nZA/ a6AZcY4y5Khp95nMYOrihN2HnHf3QsroGdA6Y7GV2EHBkRmT5tbvikrlog/CCuysKXm5 C5/SeZ8gIgvHnnlpJpOc45f0xjeBjg5KkTiqirhVeX4qBjVPsC6VKWqoW7tDm6uzqJmR jbAAFkKlHeDzYhPKIe1K9KdWfqBSPm4ISclNe10VQwPGlfzusO48I3F9aTbKNFd89P7A it6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Bx9EJikvDMDGUCNAwxp4SdiC4KEOqeo4PV+oxcc7bOY=; b=nUcBqdfSBPDlW54alpgHLYEmRSmJykWXsQUMvclRZb3yXHgFh+OqvbFOoaAoqWA21C OWz6xBKoi6wkrLpx/ucLn7ibgn4yVS5+U2eFL5wxYRx7E4BQ9BfPNKySg8+0E3OctV9Q TadPxcf6PzMSLXQUy/SyaSZ7+a5W+3i9XS1AKAVeHj/VxkU3osYNYUEYbFI5jlw3xnoO 2axZX/Y+9aK4yoQ4/wgtuaWQBEmxUCdT8BW7cvmw/VFraSYZdRT1DfZfGQhnZ8H1NaRs zD05rlIjvSF9dqwd9XcKA42yOvTLZaelJqkVvo1qweacmKKoN1KB2xeCv+KX7dUss0pK Ybgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si2578092pgw.62.2019.03.20.15.29.41; Wed, 20 Mar 2019 15:29:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727708AbfCTW24 (ORCPT + 99 others); Wed, 20 Mar 2019 18:28:56 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:33432 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbfCTW2y (ORCPT ); Wed, 20 Mar 2019 18:28:54 -0400 Received: by mail-yw1-f67.google.com with SMTP id a199so3375556ywa.0; Wed, 20 Mar 2019 15:28:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bx9EJikvDMDGUCNAwxp4SdiC4KEOqeo4PV+oxcc7bOY=; b=IasSFqtBfIra77EMpkfxc+vdxCG82hYuduGtDF/TNWQ0ZJXOQkWGcnipX9QvepY8RW MNFb/PVGRWtnZ7NASrbvA6jNXSazF3IYKhHeIjSnJgtD8ZVMWOfhHHjxanWO26vaRdis WmLjNGtooFwrcBIcosIuh0DAoL6H3XPoUvTw7yqccvFIioo1bk2AKvZLPrgjx97Dh6GU XMUAydm3dzL/CoIdTepa1lzwxZ2kkGFGokAFnzhxlQRhdOzALMclPvbiqx613g0/CNV9 8lxNd0WgkmT5h/m7bp9di3185ve0rRclBhJxgEwm5E8GRHxEyZtscesh2eYBJVoKvhgY m7Pw== X-Gm-Message-State: APjAAAV908AyDKKe+cFaATdxk6+QywxiTlDnduIOpftEZzJqOLaBRT+s FXN6BvLQ+JinvKbTQlvjffg= X-Received: by 2002:a25:65d4:: with SMTP id z203mr345117ybb.370.1553120933151; Wed, 20 Mar 2019 15:28:53 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id p1sm1067327ywg.12.2019.03.20.15.28.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 15:28:52 -0700 (PDT) Received: by 42.do-not-panic.com (sSMTP sendmail emulation); Wed, 20 Mar 2019 22:28:49 +0000 From: Luis Chamberlain To: akpm@linux-foundation.org, keescook@chromium.org Cc: sandeen@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [PATCH 3/6] test_sysctl: ignore diff output on verify_diff_w() Date: Wed, 20 Mar 2019 22:28:28 +0000 Message-Id: <20190320222831.8243-4-mcgrof@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190320222831.8243-1-mcgrof@kernel.org> References: <20190320222831.8243-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When verify_diff_w() is used we care about the result, not the verbose output, and although we use -q, that still gives us a chatty message about if the files differ or not. Since verify_diff_w() uses stdinput the chatty message says whether or not "-" matches the target file, and this just seems rather odd. Better to just ignore that messsage all together, what we really care about i sthe results, the return value and we check for that. Signed-off-by: Luis Chamberlain --- tools/testing/selftests/sysctl/sysctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sysctl/sysctl.sh b/tools/testing/selftests/sysctl/sysctl.sh index e0c8404da6b0..f51987d0d32d 100755 --- a/tools/testing/selftests/sysctl/sysctl.sh +++ b/tools/testing/selftests/sysctl/sysctl.sh @@ -179,7 +179,7 @@ verify() verify_diff_w() { - echo "$TEST_STR" | diff -q -w -u - $1 + echo "$TEST_STR" | diff -q -w -u - $1 > /dev/null return $? } -- 2.18.0