1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-03 14:01:57 +02:00

tests: update comments in tests.external.ExternalTest.test_external_dir_is_symlink

This commit is contained in:
Grigory Smolkin 2019-03-09 01:06:37 +03:00
parent 49aa6e7ce4
commit 6e2e56ce5f

View File

@ -847,7 +847,8 @@ class ExternalTest(ProbackupTest, unittest.TestCase):
def test_external_dir_is_symlink(self):
"""
Check that backup works correctly if external dir is symlink,
symlink should be read correctly, but not restored
symlink pointing to external dir should be followed,
but restored as directory
"""
fname = self.id().split('.')[3]
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
@ -875,8 +876,6 @@ class ExternalTest(ProbackupTest, unittest.TestCase):
# fill some directory with data
core_dir = os.path.join(self.tmp_path, module_name, fname)
simlinked_dir = os.path.join(core_dir, 'simlinked')
self.restore_node(
backup_dir, 'node', node,
data_dir=simlinked_dir, options=["-j", "4"])