blob: 8da76c441d72a9ccea1327bfacd12fc93a2802ee [file] [log] [blame]
Chetan Gaonkerc1a4c8a2017-04-13 00:24:44 +00001#
2# 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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# 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
17import logging
18logging.getLogger('scapy.runtime').setLevel(logging.ERROR)
19##add the python path to lookup the utils
20working_dir = os.path.dirname(os.path.realpath(sys.argv[-1]))
21utils_dir = os.path.join(working_dir, '../utils')
22fsm_dir = os.path.join(working_dir, '../fsm')
23subscriber_dir = os.path.join(working_dir, '../subscriber')
24__path__.append(utils_dir)
25__path__.append(fsm_dir)
26__path__.append(subscriber_dir)
27cli_dir = os.path.join(working_dir, '../cli')
28__path__.append(cli_dir)
29
30#from nose import main as nosetest_main
31#from CordTestConfig import CordTestConfigRestore
32#nosetest_main(addplugins = [ CordTestConfigRestore() ])