mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 00:42:54 +00:00
Don't compress tar
This commit is contained in:
@@ -15,7 +15,7 @@ def test_import(neon_env_builder,
|
||||
source_repo_dir = os.path.join(test_output_dir, "source_repo")
|
||||
destination_repo_dir = os.path.join(test_output_dir, "destination_repo")
|
||||
basebackup_dir = os.path.join(test_output_dir, "basebackup")
|
||||
basebackup_tar_path = os.path.join(test_output_dir, "basebackup.tar.gz")
|
||||
basebackup_tar_path = os.path.join(test_output_dir, "basebackup.tar")
|
||||
os.mkdir(basebackup_dir)
|
||||
|
||||
# Create a repo, put some data in, take basebackup, and shut it down
|
||||
@@ -30,8 +30,8 @@ def test_import(neon_env_builder,
|
||||
timeline = pg.safe_psql("show neon.timeline_id")[0][0]
|
||||
pg_bin.run(["pg_basebackup", "-d", pg.connstr(), "-D", basebackup_dir])
|
||||
|
||||
# compress basebackup
|
||||
with tarfile.open(basebackup_tar_path, "w:gz") as tf:
|
||||
# Pack into tar file (uncompressed)
|
||||
with tarfile.open(basebackup_tar_path, "w") as tf:
|
||||
# TODO match iteration order to what pageserver would do
|
||||
tf.add(basebackup_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user