Add test_utils ODL startup opt-out support
[transportpce.git] / tests / transportpce_tests / common / test_utils.py
index fb1c39faad949643f1df79291017dc6cb2d834e5..3ff03545c1be7ecf8df6750162991c04a3c31019 100644 (file)
@@ -153,6 +153,9 @@ def start_sims(sims_list):
 
 
 def start_tpce():
+    if 'NO_ODL_STARTUP' in os.environ:
+        print('No OpenDaylight instance to start!')
+        return []
     print('starting OpenDaylight...')
     if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True':
         process = start_lighty()