Commit 81602ab7 authored by nikaeinn's avatar nikaeinn

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:
sys.exit()
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
host = os.uname()[1]
oai = openair('localdomain','localhost')
......
......@@ -79,6 +79,24 @@ for arg in sys.argv:
sys.exit()
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]
# get the oai object
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