From patchwork Mon Jan 19 18:11:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 5660211 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D4AAE9F357 for ; Mon, 19 Jan 2015 18:13:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1884220451 for ; Mon, 19 Jan 2015 18:13:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C9DC20117 for ; Mon, 19 Jan 2015 18:13:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752393AbbASSLu (ORCPT ); Mon, 19 Jan 2015 13:11:50 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60710 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954AbbASSLu (ORCPT ); Mon, 19 Jan 2015 13:11:50 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1CC02AD94; Mon, 19 Jan 2015 18:11:49 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id E5B31DA8D5; Mon, 19 Jan 2015 19:11:48 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: quwenruo@cn.fujitsu.com, David Sterba Subject: [PATCH] btrfs-progs: tests, use non-interactive sudo helper Date: Mon, 19 Jan 2015 19:11:47 +0100 Message-Id: <1421691107-4106-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 2.1.3 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Sudo may not be configured to run without user prompt, in that case the tests would be stuck. Reported-by: Qu Wenruo Signed-off-by: David Sterba --- tests/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common b/tests/common index 84a4b9d335e2..d7d2e9bef050 100644 --- a/tests/common +++ b/tests/common @@ -58,7 +58,7 @@ export have_root_helper setup_root_helper() { if [ $UID != 0 ]; then - sudo=sudo + sudo="sudo --non-interactive" fi have_root_helper=1 }