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
This commit is contained in:
Navid Nikaein
2014-12-04 10:16:58 +00:00
parent 64e5cba6a9
commit 81602ab79f
2 changed files with 36 additions and 0 deletions
+18
View File
@@ -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')
+18
View File
@@ -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')