Code Review
/
transportpce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add test_utils ODL startup opt-out support
[transportpce.git]
/
tests
/
transportpce_tests
/
common
/
test_utils.py
diff --git
a/tests/transportpce_tests/common/test_utils.py
b/tests/transportpce_tests/common/test_utils.py
index fb1c39faad949643f1df79291017dc6cb2d834e5..3ff03545c1be7ecf8df6750162991c04a3c31019 100644
(file)
--- a/
tests/transportpce_tests/common/test_utils.py
+++ b/
tests/transportpce_tests/common/test_utils.py
@@
-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()