From bbfa5fdf52911e5138dad31bc228ca3bc7ceb8a6 Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Wed, 27 Jun 2018 13:54:32 +0200 Subject: make test: easy profiling via make test PROFILE=1 Change-Id: Ib845578485f523b7f14e98c83d05f78db382ecde Signed-off-by: Klement Sekera --- test/run_tests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/run_tests.py') diff --git a/test/run_tests.py b/test/run_tests.py index c21acab2da5..02e4738184d 100644 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -199,10 +199,16 @@ if __name__ == '__main__': retries = int(os.getenv("RETRIES", 0)) except ValueError: retries = 0 + + try: + force_foreground = int(os.getenv("FORCE_FOREGROUND", 0)) + except ValueError: + force_foreground = 0 attempts = retries + 1 if attempts > 1: print("Perform %s attempts to pass the suite..." % attempts) - if (debug is not None and debug.lower() in ["gdb", "gdbserver"]) or step: + if (debug is not None and debug.lower() in ["gdb", "gdbserver"]) or step\ + or force_foreground: # don't fork if requiring interactive terminal.. sys.exit(not VppTestRunner( verbosity=verbose, failfast=failfast).run(suite).wasSuccessful()) -- cgit 1.2.3-korg