aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/test_framework/test_shell.py')
-rw-r--r--test/functional/test_framework/test_shell.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/test_framework/test_shell.py b/test/functional/test_framework/test_shell.py
index e232430507..3f237c7ea2 100644
--- a/test/functional/test_framework/test_shell.py
+++ b/test/functional/test_framework/test_shell.py
@@ -61,7 +61,8 @@ class TestShell:
print("Shutdown TestShell before resetting!")
else:
self.num_nodes = None
- super().__init__()
+ dummy_testshell_file = pathlib.Path(__file__).absolute().parent.parent / "testshell_dummy.py"
+ super().__init__(dummy_testshell_file)
instance = None
@@ -74,8 +75,8 @@ class TestShell:
# cache. Since TestShell is meant for interactive use, there is no concrete
# test; passing a dummy name is fine though, as only the containing directory
# is relevant for successful initialization.
- tests_directory = pathlib.Path(__file__).resolve().parent.parent
- TestShell.instance = TestShell.__TestShell(tests_directory / "testshell_dummy.py")
+ dummy_testshell_file = pathlib.Path(__file__).absolute().parent.parent / "testshell_dummy.py"
+ TestShell.instance = TestShell.__TestShell(dummy_testshell_file)
TestShell.instance.running = False
return TestShell.instance