Skip to content

Commit 2526797

Browse files
committed
fix auth_test
fix file mode
1 parent d8953f5 commit 2526797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/auth_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_pgpassword(self):
172172

173173
def run_pb_with_auth(self, password=None, kill=False):
174174
try:
175-
with spawn(" ".join(self.pb.probackup_path + self.cmd), timeout=10) as probackup:
175+
with spawn(" ".join([self.pb.probackup_path] + self.cmd), timeout=10) as probackup:
176176
result = probackup.expect("Password for user .*:", 5)
177177
if kill:
178178
probackup.kill(signal.SIGINT)
@@ -200,6 +200,6 @@ def modify_pg_hba(node):
200200
fio.write('host\tall\tpostgres\t127.0.0.1/0\ttrust\n' + data)
201201

202202
def create_pgpass(path, line):
203-
with open(path, 'w') as passfile:
203+
with open(path, 'w', mode='0660') as passfile:
204204
# host:port:db:username:password
205205
passfile.write(line)

0 commit comments

Comments
 (0)