예제 #1
0
파일: reporter.py 프로젝트: bowhan/kent
 def __formatCommand(command):
     """Turns command list into string, keeping whitespace quoted."""
     return " ".join(procOps.shQuote(command))
예제 #2
0
 def testQuotesCsh(self):
     # must use /bin/echo, as some csh echos expand backslash sequences
     for (words, expect) in self.testData:
         out = procOps.callProc(["csh", "-c", "/bin/echo " + " ".join(procOps.shQuote(words))])
         self.assertEqual(out, expect)
예제 #3
0
 def testQuotesBash(self):
     for (words, expect) in self.testData:
         out = procOps.callProc(["sh", "-c", "/bin/echo " + " ".join(procOps.shQuote(words))])
         self.assertEqual(out, expect)
예제 #4
0
 def testQuotesCsh(self):
     # must use /bin/echo, as some csh echos expand backslash sequences
     for (words, expect) in self.testData:
         out = procOps.callProc(
             ["csh", "-c", "/bin/echo " + " ".join(procOps.shQuote(words))])
         self.failUnlessEqual(out, expect)
예제 #5
0
 def testQuotesBash(self):
     for (words, expect) in self.testData:
         out = procOps.callProc(
             ["sh", "-c", "/bin/echo " + " ".join(procOps.shQuote(words))])
         self.failUnlessEqual(out, expect)
예제 #6
0
 def __formatCommand(command):
     """Turns command list into string, keeping whitespace quoted."""
     return " ".join(procOps.shQuote(command))