test: Fail on self-check warnings in test_runner.py
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -410,7 +410,6 @@ def main():
|
||||
parser.add_argument('--ansi', action='store_true', default=sys.stdout.isatty(), help="Use ANSI colors and dots in output (enabled by default when standard output is a TTY)")
|
||||
parser.add_argument('--combinedlogslen', '-c', type=int, default=0, metavar='n', help='On failure, print a log (of length n lines) to the console, combined from the test framework and all test nodes.')
|
||||
parser.add_argument('--coverage', action='store_true', help='generate a basic coverage report for the RPC interface')
|
||||
parser.add_argument('--ci', action='store_true', help='Run checks and code that are usually only enabled in a continuous integration environment')
|
||||
parser.add_argument('--exclude', '-x', action='append', help='specify a script to exclude. Can be specified multiple times. The .py extension is optional.')
|
||||
parser.add_argument('--extended', action='store_true', help='run the extended test suite in addition to the basic tests')
|
||||
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
|
||||
@@ -425,7 +424,8 @@ def main():
|
||||
parser.add_argument('--resultsfile', '-r', help='store test results (as CSV) to the provided file')
|
||||
|
||||
args, unknown_args = parser.parse_known_args()
|
||||
fail_on_warn = args.ci
|
||||
# Fail on self-check warnings before running the tests.
|
||||
fail_on_warn = True
|
||||
if not args.ansi:
|
||||
global DEFAULT, BOLD, GREEN, RED
|
||||
DEFAULT = ("", "")
|
||||
|
||||
Reference in new issue
Block a user