local-ci-build: Add usage of NO_FORMAT_CODE

To test a local repo with changes not committed, set "NO_FORMAT_CODE=1"
before running `run-unit-test-docker.sh`, which is convenient for local
testing.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I5f2cf4c67f99c90252f30c0e25aae9aed013047d
diff --git a/testing/local-ci-build.md b/testing/local-ci-build.md
index a255091..d5b6265 100644
--- a/testing/local-ci-build.md
+++ b/testing/local-ci-build.md
@@ -53,6 +53,22 @@
 an active development branch. If you plan to develop regularly on a repo, use
 the next technique instead.
 
+## Run CI on local changed Repo
+
+If you have local changes in the repo, and you do not want to commit yet, it's
+possible to run local CI as well by setting `NO_FORMAT_CODE=1` before running
+the script.
+
+E.g.
+
+```shell
+WORKSPACE=$(pwd) UNIT_TEST_PKG=phosphor-hwmon NO_FORMAT_CODE=1 \
+./openbmc-build-scripts/run-unit-test-docker.sh
+```
+
+`NO_FORMAT_CODE=1` tells the script to skip the `format-code.sh` so that it
+will not format the code and thus your repo could contain un-committed changes.
+
 ## Reference an Existing Repo with `git worktree`
 
 If you're actively developing on a local copy of a repo already, or you want to