Commit 81602ab7 authored by Navid Nikaein's avatar Navid Nikaein

check the OAI ENV VARS in the pre-ci test

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6153 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 64e5cba6
...@@ -77,6 +77,24 @@ for arg in sys.argv: ...@@ -77,6 +77,24 @@ for arg in sys.argv:
sys.exit() sys.exit()
i= i + 1 i= i + 1
try:
os.environ["OPENAIR1_DIR"]
except KeyError:
print "Please set the environment variable OPENAIR1_DIR in the .bashrc"
sys.exit(1)
try:
os.environ["OPENAIR2_DIR"]
except KeyError:
print "Please set the environment variable OPENAIR2_DIR in the .bashrc"
sys.exit(1)
try:
os.environ["OPENAIR_TARGETS"]
except KeyError:
print "Please set the environment variable OPENAIR_TARGETS in the .bashrc"
sys.exit(1)
# get the oai object # get the oai object
host = os.uname()[1] host = os.uname()[1]
oai = openair('localdomain','localhost') oai = openair('localdomain','localhost')
......
...@@ -79,6 +79,24 @@ for arg in sys.argv: ...@@ -79,6 +79,24 @@ for arg in sys.argv:
sys.exit() sys.exit()
i= i + 1 i= i + 1
try:
os.environ["OPENAIR1_DIR"]
except KeyError:
print "Please set the environment variable OPENAIR1_DIR in the .bashrc"
sys.exit(1)
try:
os.environ["OPENAIR2_DIR"]
except KeyError:
print "Please set the environment variable OPENAIR2_DIR in the .bashrc"
sys.exit(1)
try:
os.environ["OPENAIR_TARGETS"]
except KeyError:
print "Please set the environment variable OPENAIR_TARGETS in the .bashrc"
sys.exit(1)
host = os.uname()[1] host = os.uname()[1]
# get the oai object # get the oai object
oai = openair('localdomain','localhost') oai = openair('localdomain','localhost')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment