aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-06-08 23:58:40 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2024-07-16 22:06:47 +0100
commita8e3af1a82dd584a1cc3ffbe587e66889f72e3c7 (patch)
tree29e7e4189d1a1e44515b20b48a3cffccc4b71ec2 /test/functional
parent9bf7ca6cad888d460f57d249264dc0062025bb3f (diff)
qa: Do not assume running `feature_asmap.py` from source directory
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/feature_asmap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/feature_asmap.py b/test/functional/feature_asmap.py
index cbff028bcc..53e94bf4df 100755
--- a/test/functional/feature_asmap.py
+++ b/test/functional/feature_asmap.py
@@ -30,7 +30,7 @@ from test_framework.test_framework import BitcoinTestFramework
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):
@@ -133,7 +133,8 @@ class AsmapTest(BitcoinTestFramework):
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()