File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
from test_framework .util import assert_equal
31
31
32
32
DEFAULT_ASMAP_FILENAME = 'ip_asn.map' # defined in src/init.cpp
33
- ASMAP = '../../ src/test/data/asmap.raw' # path to unit test skeleton asmap
33
+ ASMAP = 'src/test/data/asmap.raw' # path to unit test skeleton asmap
34
34
VERSION = 'fec61fa21a9f46f3b17bdcd660d7f4cd90b966aad3aec593c99b35f0aca15853'
35
35
36
36
def expected_messages (filename ):
@@ -133,7 +133,8 @@ def run_test(self):
133
133
self .node = self .nodes [0 ]
134
134
self .datadir = self .node .chain_path
135
135
self .default_asmap = os .path .join (self .datadir , DEFAULT_ASMAP_FILENAME )
136
- self .asmap_raw = os .path .join (os .path .dirname (os .path .realpath (__file__ )), ASMAP )
136
+ base_dir = self .config ["environment" ]["SRCDIR" ]
137
+ self .asmap_raw = os .path .join (base_dir , ASMAP )
137
138
138
139
self .test_without_asmap_arg ()
139
140
self .test_asmap_with_absolute_path ()
You can’t perform that action at this time.
0 commit comments