Skip to content

Commit

Permalink
qa: Do not assume running feature_asmap.py from source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jun 9, 2024
1 parent 1ec9926 commit 7e94254
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/functional/feature_asmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from test_framework.util import assert_equal

DEFAULT_ASMAP_FILENAME = 'ip_asn.map' # defined in src/init.cpp
ASMAP = '../../src/test/data/asmap.raw' # path to unit test skeleton asmap
ASMAP = 'src/test/data/asmap.raw' # path to unit test skeleton asmap
VERSION = 'fec61fa21a9f46f3b17bdcd660d7f4cd90b966aad3aec593c99b35f0aca15853'

def expected_messages(filename):
Expand Down Expand Up @@ -133,7 +133,8 @@ def run_test(self):
self.node = self.nodes[0]
self.datadir = self.node.chain_path
self.default_asmap = os.path.join(self.datadir, DEFAULT_ASMAP_FILENAME)
self.asmap_raw = os.path.join(os.path.dirname(os.path.realpath(__file__)), ASMAP)
base_dir = self.config["environment"]["SRCDIR"]
self.asmap_raw = os.path.join(base_dir, ASMAP)

self.test_without_asmap_arg()
self.test_asmap_with_absolute_path()
Expand Down

0 comments on commit 7e94254

Please sign in to comment.