File tree 2 files changed +3
-145
lines changed
testgres/plugins/pg_probackup2/pg_probackup2
2 files changed +3
-145
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ def __str__(self):
37
37
return '\n ERROR: {0}\n CMD: {1}' .format (repr (self .message ), self .cmd )
38
38
39
39
40
+ # Local or S3 backup
41
+ fs_backup_class = FSTestBackupDir
42
+
40
43
class ProbackupApp :
41
44
42
45
def __init__ (self , test_class : unittest .TestCase ,
@@ -747,16 +750,5 @@ def load_backup_class(fs_type):
747
750
748
751
return getattr (module , class_name )
749
752
750
-
751
- # Local or S3 backup
752
- fs_backup_class = FSTestBackupDir
753
- if os .environ .get ('PG_PROBACKUP_S3_TEST' , os .environ .get ('PROBACKUP_S3_TYPE_FULL_TEST' )):
754
- root = os .path .realpath (os .path .join (os .path .dirname (__file__ ), '../..' ))
755
- if root not in sys .path :
756
- sys .path .append (root )
757
- from pg_probackup2 .storage .s3_backup import S3TestBackupDir
758
-
759
- fs_backup_class = S3TestBackupDir
760
-
761
753
def build_backup_dir (self , backup = 'backup' ):
762
754
return fs_backup_class (rel_path = self .rel_path , backup = backup )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments