We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f88fd commit 49628f0Copy full SHA for 49628f0
testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py
@@ -74,16 +74,13 @@ def __init__(self):
74
self._test_env = test_env
75
76
# Get the directory from which the script was executed
77
- helpers_path = os.getcwd()
78
- self.tests_source_path = os.path.abspath(
79
- os.path.join(helpers_path, os.pardir)
80
- )
+ self.source_path = os.getcwd()
81
tmp_path = test_env.get('PGPROBACKUP_TMP_DIR')
82
if tmp_path and os.path.isabs(tmp_path):
83
self.tmp_path = tmp_path
84
else:
85
self.tmp_path = os.path.abspath(
86
- os.path.join(self.tests_source_path, tmp_path or 'tmp_dirs')
+ os.path.join(self.source_path, tmp_path or 'tmp_dirs')
87
)
88
89
os.makedirs(self.tmp_path, exist_ok=True)
0 commit comments