Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit992f0c8

Browse files
author
vshepard
committed
Move file control for tests
1 parent0edc937 commit992f0c8

File tree

2 files changed

+3
-145
lines changed

2 files changed

+3
-145
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def __str__(self):
3737
return'\n ERROR: {0}\n CMD: {1}'.format(repr(self.message),self.cmd)
3838

3939

40+
# Local or S3 backup
41+
fs_backup_class=FSTestBackupDir
42+
4043
classProbackupApp:
4144

4245
def__init__(self,test_class:unittest.TestCase,
@@ -747,16 +750,5 @@ def load_backup_class(fs_type):
747750

748751
returngetattr(module,class_name)
749752

750-
751-
# Local or S3 backup
752-
fs_backup_class=FSTestBackupDir
753-
ifos.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-
ifrootnotinsys.path:
756-
sys.path.append(root)
757-
frompg_probackup2.storage.s3_backupimportS3TestBackupDir
758-
759-
fs_backup_class=S3TestBackupDir
760-
761753
defbuild_backup_dir(self,backup='backup'):
762754
returnfs_backup_class(rel_path=self.rel_path,backup=backup)

‎testgres/plugins/pg_probackup2/pg_probackup2/storage/s3_backup.py

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp