diff --git a/targets/TEST/OAI/test01.py b/targets/TEST/OAI/test01.py index 8a4ccd228a..7dbebbbc7e 100644 --- a/targets/TEST/OAI/test01.py +++ b/targets/TEST/OAI/test01.py @@ -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') diff --git a/targets/TEST/OAI/test02.py b/targets/TEST/OAI/test02.py index 27c07b17d8..c76b7480e7 100644 --- a/targets/TEST/OAI/test02.py +++ b/targets/TEST/OAI/test02.py @@ -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')