Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3451c5

Browse files
committed
tests: module "external" fixes for Windows
1 parent f154be4 commit c3451c5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/external.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,9 @@ def test_external_dir_is_symlink(self):
13801380
symlink pointing to external dir should be followed,
13811381
but restored as directory
13821382
"""
1383+
if os.name == 'nt':
1384+
return unittest.skip('Skipped for Windows')
1385+
13831386
fname = self.id().split('.')[3]
13841387
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
13851388
core_dir = os.path.join(self.tmp_path, module_name, fname)
@@ -1462,6 +1465,9 @@ def test_external_dir_contain_symlink_on_dir(self):
14621465
symlink pointing to external dir should be followed,
14631466
but restored as directory
14641467
"""
1468+
if os.name == 'nt':
1469+
return unittest.skip('Skipped for Windows')
1470+
14651471
fname = self.id().split('.')[3]
14661472
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
14671473
core_dir = os.path.join(self.tmp_path, module_name, fname)
@@ -1544,6 +1550,9 @@ def test_external_dir_contain_symlink_on_file(self):
15441550
symlink pointing to external dir should be followed,
15451551
but restored as directory
15461552
"""
1553+
if os.name == 'nt':
1554+
return unittest.skip('Skipped for Windows')
1555+
15471556
fname = self.id().split('.')[3]
15481557
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
15491558
core_dir = os.path.join(self.tmp_path, module_name, fname)
@@ -1896,7 +1905,7 @@ def test_merge_external_dir_is_missing(self):
18961905
except ProbackupException as e:
18971906
self.assertIn(
18981907
'ERROR: External directory is not found:',
1899-
external_dir,
1908+
e.message,
19001909
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
19011910
repr(e.message), self.cmd))
19021911

0 commit comments

Comments
 (0)