From d83b6918a7d18a09f86858709f173277d62c268e Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Tue, 10 Feb 2015 15:34:33 +0800 Subject: [PATCH] docs: emphasis TESTFLAGS and add some descriptions Signed-off-by: Chen Hanxiao --- docs/sources/contributing/devenvironment.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sources/contributing/devenvironment.md b/docs/sources/contributing/devenvironment.md index 607ed4d9ed..21d533686c 100644 --- a/docs/sources/contributing/devenvironment.md +++ b/docs/sources/contributing/devenvironment.md @@ -126,11 +126,13 @@ something like this PASS ok github.com/docker/docker/utils 0.017s -If $TESTFLAGS is set in the environment, it is passed as extra arguments +If `$TESTFLAGS` is set in the environment, it will pass extra arguments to `go test`. You can use this to select certain tests to run, e.g., $ TESTFLAGS='-test.run \^TestBuild\$' make test +Only those test cases matching the regular expression inside quotation marks will be tested. + If the output indicates "FAIL" and you see errors like this: server.go:1302 Error: Insertion failed because database is full: database or disk is full