From patchwork Wed Mar 20 22:28:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Chamberlain X-Patchwork-Id: 10862661 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 DE95E1515 for ; Wed, 20 Mar 2019 22:28:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C297429ED0 for ; Wed, 20 Mar 2019 22:28:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B763829ED4; Wed, 20 Mar 2019 22:28:56 +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 9D81D29ED0 for ; Wed, 20 Mar 2019 22:28:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727684AbfCTW2y (ORCPT ); Wed, 20 Mar 2019 18:28:54 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:46078 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727680AbfCTW2v (ORCPT ); Wed, 20 Mar 2019 18:28:51 -0400 Received: by mail-yw1-f66.google.com with SMTP id j128so3315034ywg.12; Wed, 20 Mar 2019 15:28:50 -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=7xNmYnQsl8UJtiV0CU/tgLUrv0vvHpQBBgA3eiMC6KQ=; b=VZyIhzg/vL7xRCsLheE8ezlNVmYdhnoRtp/zpMun8NOvCiC3/IYUi7P/lVY9KiG3CM aTT5GR7c/J12w9xVRmTTEeYQ46k8oq2yeFnJDoMtM5JV8tkShQfFZ41jcMLde2Yvzl37 +WZ5MMc7F0xsyXwaqivYi9mzpZJddkEtxy2Wdj5P5ZM6QnJthUpppm8Zx7pbj+Bk1iDE FtEecxkgGXuZAHtJ22/iLLylMhOLQgufvP/sju0+KvA3XeIEsvDhAIul+5cG5pN8khsJ NT3joBqauU5c3d2W/wps7QWxDAGxDkzEjzHljYFg/MRyXrFxVhCE2APHPR/ywmjerRgS lmbw== X-Gm-Message-State: APjAAAVJSLjE9xK7ykIR1IU/FoiD/FpH/6BsMKDbuCJlpRVX0pfxxeQI Xwv/iUj25HIG4ooeOWttYeI= X-Google-Smtp-Source: APXvYqyK/6Ghd74kvYhCkKGbDwRh2ZfNdWJRPzBbtXfcu+i+DL6vWjisPUBWHmWGp/QQGjsTN0zCtA== X-Received: by 2002:a25:dd8:: with SMTP id 207mr291070ybn.379.1553120929839; Wed, 20 Mar 2019 15:28:49 -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 p17sm1067949ywg.27.2019.03.20.15.28.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Mar 2019 15:28:49 -0700 (PDT) Received: by 42.do-not-panic.com (sSMTP sendmail emulation); Wed, 20 Mar 2019 22:28:46 +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 2/6] test_sysctl: load module before testing for it Date: Wed, 20 Mar 2019 22:28:27 +0000 Message-Id: <20190320222831.8243-3-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 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the test script checks for the existance of the sysctl test module's directory path prior to loading it. We must first try to load the module prior to checking for that path. This fixes the order for the load / test. 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 87df7e52a97a..e0c8404da6b0 100755 --- a/tools/testing/selftests/sysctl/sysctl.sh +++ b/tools/testing/selftests/sysctl/sysctl.sh @@ -823,8 +823,8 @@ function parse_args() test_reqs allow_user_defaults check_production_sysctl_writes_strict -test_modprobe load_req_mod +test_modprobe trap "test_finish" EXIT