|
1 |
| -importunittest |
2 |
| -fromsysimportexit |
3 | 1 | importos
|
4 |
| -fromosimportpath |
| 2 | +importunittest |
5 | 3 | from .helpers.ptrack_helpersimportdir_files,ProbackupTest,ProbackupException
|
6 |
| -fromtestgresimportstop_all,clean_all |
7 |
| -importshutil |
8 | 4 |
|
9 | 5 |
|
10 | 6 | classInitTest(ProbackupTest,unittest.TestCase):
|
@@ -67,7 +63,7 @@ def test_abs_path(self):
|
67 | 63 | backup_dir=os.path.join(self.tmp_path,self.module_name,fname,'backup')
|
68 | 64 | node=self.make_simple_node(base_dir="{0}/{1}/node".format(self.module_name,fname))
|
69 | 65 | try:
|
70 |
| -self.run_pb(["init","-B",path.relpath("%s/backup"%node.base_dir,self.dir_path)]) |
| 66 | +self.run_pb(["init","-B",os.path.relpath("%s/backup"%node.base_dir,self.dir_path)]) |
71 | 67 | self.assertEqual(1,0,'Expecting Error due to initialization with non-absolute path in --backup-path. Output: {0}\n CMD: {1}'.format(
|
72 | 68 | repr(self.output),self.cmd))
|
73 | 69 | exceptProbackupExceptionase:
|
|