All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests] Documentation: document prerequisite scriptlets
@ 2018-05-14 11:40 ` Johannes Thumshirn
  0 siblings, 0 replies; 12+ messages in thread
From: Johannes Thumshirn @ 2018-05-14 11:40 UTC (permalink / raw)
  To: Omar Sandoval
  Cc: Linux Block Layer Mailinglist, Linux NVMe Mailinglist,
	Johannes Thumshirn

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-23  7:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 11:40 [PATCH blktests] Documentation: document prerequisite scriptlets Johannes Thumshirn
2018-05-14 11:40 ` 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

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.