Revision 01fd6005 test/ganeti.utils_unittest.py

b/test/ganeti.utils_unittest.py
155 155
    self.assertEqual(result.output, "A" + self.magic + "B" + self.magic)
156 156

  
157 157
  def testSignal(self):
158
    """Test standard error"""
159
    result = RunCmd("/bin/sh -c 'kill -15 $$'")
158
    """Test signal"""
159
    result = RunCmd(["python", "-c", "import os; os.kill(os.getpid(), 15)"])
160 160
    self.assertEqual(result.signal, 15)
161 161

  
162 162
  def testListRun(self):

Also available in: Unified diff