From: Johannes Thumshirn <jthumshirn@suse.de> To: Omar Sandoval <osandov@osandov.com> Cc: Linux Block Layer Mailinglist <linux-block@vger.kernel.org>, Linux NVMe Mailinglist <linux-nvme@lists.infradead.org>, Johannes Thumshirn <jthumshirn@suse.de> Subject: [PATCH blktests] Documentation: document prerequisite scriptlets Date: Mon, 14 May 2018 13:40:42 +0200 [thread overview] Message-ID: <20180514114042.12082-1-jthumshirn@suse.de> (raw) The config file is bash and it gets sourced, so all bash magic is doable in there as well. Document it so others don't have to re-discover this gem as well. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> --- Documentation/running-tests.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/running-tests.md b/Documentation/running-tests.md index a479d5e94c5e..b477c0679683 100644 --- a/Documentation/running-tests.md +++ b/Documentation/running-tests.md @@ -66,3 +66,15 @@ command line option. QUICK_RUN=1 TIMEOUT=30 ``` + +### Pre-test setups + +Some tests, may need special prerequisites, like configfs being +mounted for NVMe over Fabrics tests. You can add your custom bash +scriptlets to `config` to get this done, e.g.: + +```sh +if ! test $(grep -q configfs /proc/mounts) ; then + mount -t configfs none /sys/kernel/config +fi +``` -- 2.16.3
WARNING: multiple messages have this Message-ID (diff)
From: jthumshirn@suse.de (Johannes Thumshirn) Subject: [PATCH blktests] Documentation: document prerequisite scriptlets Date: Mon, 14 May 2018 13:40:42 +0200 [thread overview] Message-ID: <20180514114042.12082-1-jthumshirn@suse.de> (raw) The config file is bash and it gets sourced, so all bash magic is doable in there as well. Document it so others don't have to re-discover this gem as well. Signed-off-by: Johannes Thumshirn <jthumshirn at suse.de> --- Documentation/running-tests.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/running-tests.md b/Documentation/running-tests.md index a479d5e94c5e..b477c0679683 100644 --- a/Documentation/running-tests.md +++ b/Documentation/running-tests.md @@ -66,3 +66,15 @@ command line option. QUICK_RUN=1 TIMEOUT=30 ``` + +### Pre-test setups + +Some tests, may need special prerequisites, like configfs being +mounted for NVMe over Fabrics tests. You can add your custom bash +scriptlets to `config` to get this done, e.g.: + +```sh +if ! test $(grep -q configfs /proc/mounts) ; then + mount -t configfs none /sys/kernel/config +fi +``` -- 2.16.3
next reply other threads:[~2018-05-14 11:40 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-14 11:40 Johannes Thumshirn [this message] 2018-05-14 11:40 ` [PATCH blktests] Documentation: document prerequisite scriptlets Johannes Thumshirn 2018-05-17 13:44 ` Johannes Thumshirn 2018-05-17 13:44 ` Johannes Thumshirn 2018-05-21 18:29 ` Omar Sandoval 2018-05-21 18:29 ` Omar Sandoval 2018-05-22 7:30 ` Johannes Thumshirn 2018-05-22 7:30 ` Johannes Thumshirn 2018-05-23 0:15 ` Omar Sandoval 2018-05-23 0:15 ` Omar Sandoval 2018-05-23 7:23 ` Johannes Thumshirn 2018-05-23 7:23 ` Johannes Thumshirn
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180514114042.12082-1-jthumshirn@suse.de \ --to=jthumshirn@suse.de \ --cc=linux-block@vger.kernel.org \ --cc=linux-nvme@lists.infradead.org \ --cc=osandov@osandov.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.