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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user