mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 22:06:10 +02:00
test_parser: Make this independent from test environment path
To make this able to run via testr. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
aae00a8ba5
commit
2d52d1922b
@ -194,12 +194,14 @@ class Test_Parser(unittest.TestCase):
|
||||
|
||||
def _add_tests():
|
||||
import os
|
||||
import os.path
|
||||
import fnmatch
|
||||
import new
|
||||
import functools
|
||||
|
||||
packet_data_dir = '../packet_data'
|
||||
json_dir = './ofproto/json'
|
||||
this_dir = os.path.dirname(sys.modules[__name__].__file__)
|
||||
packet_data_dir = os.path.join(this_dir, '../../packet_data')
|
||||
json_dir = os.path.join(this_dir, 'json')
|
||||
ofvers = [
|
||||
'of10',
|
||||
'of12',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user