Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp116563img; Wed, 20 Mar 2019 15:30:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIF8bMNSCR5tauysDKLVxtfoPgDokAwF7/XHSSq9vNEgYh3rpfuJdu+H/kDW5NOTKCyfr1 X-Received: by 2002:a62:6046:: with SMTP id u67mr206734pfb.46.1553121058317; Wed, 20 Mar 2019 15:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553121058; cv=none; d=google.com; s=arc-20160816; b=rpM2XYlQgncQrNquGscZFuez5fG+jMiAT0/5J/mwL8O7fDl7UY8DnDPSmZ+TuLaht2 /XFpevwq4VygwTnTSzIalgecPCQi5HHLtRlr/eid5O5zn9t9iNHLgqyRS4YLTf8KjvVS KrXEWbGK57tmEaMuN+YCJ8dwzSRCGGZDHCauflD1GmU/GWcsnLkS46RRiPuN/iz85aXU +ugahZ7IGGT1Y0zKMsKUGuM5z1Xp9rUOKnXXsobK0FvM6G50Q1LuZMXx/mOatWJe7pZs Q9zKtqbuewvKKX7dGOIyUGiL05RSpQEYKshxRk4MQtmDo10hu0Nd9nlqW0wTGwGYyeLb ozwA== 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=7xNmYnQsl8UJtiV0CU/tgLUrv0vvHpQBBgA3eiMC6KQ=; b=LiMykwTJVLt1pmHEc1bA8cYx264HHtc5v2T7ut0ENnbGDHxHl3mcCShtjMOZGJnYf5 0Iz9706em+/1d5/g63lLVihpeG8NOds6mfwSusyt9H3ANOEAvAY2cqSxSd3mhQ2cR8lR +LH2ARyL4wjt9ZZ5MKnOBIcRKkg1U0oE+n3WVlC7Rw5m4vaDHgvwzakSKjO3yGI+O6GN /vHjcpAV8KtFr0U0YmlUNFqabwos4fee6Z7ks7O6t+OlvV0th1ySXu5MxNIPqasGCqm8 8oeFRA1UFHpY1F9EJGDvsSnu5XIeTKCGAb8FaNrBa/9h5zCBZCq+QkHtQO7TNxovw4A/ qqiQ== 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 n19si2546811pff.18.2019.03.20.15.30.41; Wed, 20 Mar 2019 15:30:58 -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 S1727693AbfCTW2z (ORCPT + 99 others); Wed, 20 Mar 2019 18:28:55 -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-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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.18.0