From 8e8b0139119f102b08283c528ddbae70728bc188 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 31 Jul 2013 18:40:03 +0100 Subject: Add SRCDIR to the README --- README.yarn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.yarn') diff --git a/README.yarn b/README.yarn index 76d57b5..7006a66 100644 --- a/README.yarn +++ b/README.yarn @@ -136,6 +136,10 @@ The following keywords are defined. The test runner creates a temporary directory, whose name is given to the shell code in the `DATADIR` environment variable. + The test runner sets the `SRCDIR` environment variable to the + path to the directory it was invoked from (by convention, the + root of the source tree of the project). + The shell commands get invoked with `/bin/sh -eu`, and need to be written accordingly. Be careful about commands that return a non-zero exit code. There will eventually be a library of shell -- cgit v1.2.1