sanitycheck: default to assertions being enabled

Changed the default behavior for when we run sanitycheck to match the -R
flag that turns on assertions.  Introduced a --disable-asserts option if
we desire to explicitly turn of asserts.

This matches behavior that our CI builds have been doing and addresses
part of #5726.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-01-26 10:22:20 -06:00 committed by Anas Nashif
parent da2f7ddc09
commit 0d48cbe13e
1 changed files with 6 additions and 1 deletions

View File

@ -2206,7 +2206,12 @@ def parse_arguments():
help="Execute time-consuming test cases that have been marked "
"as 'slow' in testcase.yaml. Normally these are only built.")
parser.add_argument("-R", "--enable-asserts", action="store_true",
help="Build all test cases with assertions enabled.")
default=True,
help="Build all test cases with assertions enabled. "
"Default to assertions being enabled.")
parser.add_argument("--disable-asserts", action="store_false",
dest="enable_asserts",
help="Build all test cases with assertions disabled.")
parser.add_argument("-Q", "--error-on-deprecations", action="store_false",
help="Error on deprecation warnings.")