From 0277c37759500df4159e7eccf4f044fb2ce7c01e Mon Sep 17 00:00:00 2001 From: Bojan Serafimov Date: Wed, 8 Jun 2022 19:31:23 -0400 Subject: [PATCH] Don't compress tar --- test_runner/batch_others/test_import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_runner/batch_others/test_import.py b/test_runner/batch_others/test_import.py index 4e95ddf88e..ac5d606fb0 100644 --- a/test_runner/batch_others/test_import.py +++ b/test_runner/batch_others/test_import.py @@ -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)