Add --noformat option for unit test

The run-unit-test-docker.sh and unit-test.py will run format-code.sh to
check the code format, and break when the code is not formatted
correctly.

For local-ci, this is unecessary because the code not "git add" or not
committed is treated as not-formatted and will break.

Adding NO_FORMAT_CODE option to make the unit test skip formatting the
code, so that one could write code in local repo, run the local-ci
without having to git add ro commit the changes.

Tested: Run run-unit-test-docker.sh as before, verify the format-code.sh
        is invoked;
        Run 'NO_FORMAT_CODE=1 run-unit-test-docker.sh', verify the
        format-code.sh is not invoked.

Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Ib3b6cf34390c91d551bc14613e925b8e51a3065f
2 files changed