aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_tests.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-06-27 13:54:32 +0200
committerDamjan Marion <dmarion@me.com>2018-06-27 13:37:32 +0000
commitbbfa5fdf52911e5138dad31bc228ca3bc7ceb8a6 (patch)
tree5d85764af2f06050c2752708456ed45f8e8973ec /test/run_tests.py
parent5b3d95bb3268457f8e9dc264883252b3dcb27141 (diff)
make test: easy profiling via make test PROFILE=1
Change-Id: Ib845578485f523b7f14e98c83d05f78db382ecde Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/run_tests.py')
-rw-r--r--test/run_tests.py8
1 files changed, 7 insertions, 1 deletions
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())