blob: 082009ea1af396606c811a2c8bcb1b40e4139d59 [file] [log] [blame]
A.R Karthick2e99c472017-03-22 19:13:51 -07001#
Chetan Gaonker52418832017-01-26 23:03:13 +00002# Copyright 2016-present Ciena Corporation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
A.R Karthick2e99c472017-03-22 19:13:51 -07007#
Chetan Gaonker52418832017-01-26 23:03:13 +00008# http://www.apache.org/licenses/LICENSE-2.0
A.R Karthick2e99c472017-03-22 19:13:51 -07009#
Chetan Gaonker52418832017-01-26 23:03:13 +000010# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16import os,sys
A.R Karthick2e99c472017-03-22 19:13:51 -070017import logging
A.R Karthick8f7f1b62017-04-06 18:25:07 -070018from nose import main as nosetest_main
A.R Karthick2e99c472017-03-22 19:13:51 -070019logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
Chetan Gaonker52418832017-01-26 23:03:13 +000020##add the python path to lookup the utils
21working_dir = os.path.dirname(os.path.realpath(sys.argv[-1]))
22utils_dir = os.path.join(working_dir, '../utils')
23fsm_dir = os.path.join(working_dir, '../fsm')
24subscriber_dir = os.path.join(working_dir, '../subscriber')
25__path__.append(utils_dir)
26__path__.append(fsm_dir)
27__path__.append(subscriber_dir)
28cli_dir = os.path.join(working_dir, '../cli')
29__path__.append(cli_dir)
A.R Karthick8f7f1b62017-04-06 18:25:07 -070030from CordTestConfig import CordTestConfigRestore
31nosetest_main(addplugins = [ CordTestConfigRestore() ])