8000 tests: crutch-fix json parsing in show_pb() · postgrespro/pg_probackup@94d7c4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 94d7c4b

Browse files
committed
tests: crutch-fix json parsing in show_pb()
1 parent c542c61 commit 94d7c4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/helpers/ptrack_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,9 @@ def show_pb(
722722
if backup_id:
723723
cmd_list += ['-i', backup_id]
724724

725+
# AHTUNG, WARNING will break json parsing
725726
if as_json:
726-
cmd_list += ['--format=json']
727+
cmd_list += ['--format=json', '--log-level-console=error']
727728

728729
if as_text:
729730
# You should print it when calling as_text=true

0 commit comments

Comments
 (0)
0