From 02fe4bfce7b93c54e7e0e1a68a822dcd7764b30f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 31 Jul 2013 18:41:45 +0100 Subject: Add to README mention of environment cleanup --- README.yarn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.yarn b/README.yarn index 7006a66..16f7522 100644 --- a/README.yarn +++ b/README.yarn @@ -140,6 +140,11 @@ The following keywords are defined. path to the directory it was invoked from (by convention, the root of the source tree of the project). + The test runner removes all other environment variables, except + `TERM`, `USER`, `USERNAME`, `LOGNAME`, `HOME`, and `PATH`. It also + forces `SHELL` set to `/bin/sh`, and `LC_ALL` set to `C`, in order + to have as clean an environment as possible for tests to run in. + 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