Exemple #1
0
 def test_failurecode(self):
     try:
         svnmerge.launch(self.cmd*10)
     except svnmerge.LaunchError, (ret, cmd, out):
         self.assertNotEqual(ret, 0)
         self.assertNotEqual(ret, None)
         self.assert_(out)
         self.assertEqual(cmd, self.cmd*10)
Exemple #2
0
 def test_failurecode(self):
     try:
         svnmerge.launch(self.cmd*10)
     except svnmerge.LaunchError, (ret, cmd, out):
         self.assertNotEqual(ret, 0)
         self.assertNotEqual(ret, None)
         self.assert_(out)
         self.assertEqual(cmd, self.cmd*10)
Exemple #3
0
 def test_basic(self):
     out = svnmerge.launch(self.cmd)
     self.assert_(out)
     for o in out:
         self.assertEqual(o[-1], "\n")
Exemple #4
0
 def getBlockedProperty(self):
     out = svnmerge.launch("svn pg %s ." % svnmerge.opts["block-prop"])
     if len(out) == 0:
         return None
     else:
         return out[0].strip()
Exemple #5
0
 def multilaunch(self, cmds):
     for cmd in cmds.split("\n"):
         cmd = cmd.strip()
         svnmerge.launch(cmd % self.command_dict())
Exemple #6
0
 def launch(self, cmd, **kwargs):
     try:
         out = svnmerge.launch(cmd, split_lines=False)
     except svnmerge.LaunchError, (ret, cmd, out):
         return self._parseoutput(ret, out, **kwargs)
Exemple #7
0
 def test_basic(self):
     out = svnmerge.launch(self.cmd)
     self.assert_(out)
     for o in out:
         self.assertEqual(o[-1], "\n")
Exemple #8
0
 def getBlockedProperty(self):
     out = svnmerge.launch("svn pg %s ." % svnmerge.opts["block-prop"])
     if len(out) == 0:
         return None
     else:
         return out[0].strip()
Exemple #9
0
 def multilaunch(self, cmds):
     for cmd in cmds.split("\n"):
         cmd = cmd.strip()
         if len(cmd) > 0:
             svnmerge.launch(cmd % self.command_dict())
Exemple #10
0
 def launch(self, cmd, **kwargs):
     try:
         out = svnmerge.launch(cmd, split_lines=False)
     except svnmerge.LaunchError, (ret, cmd, out):
         return self._parseoutput(ret, out, **kwargs)