Commit ff6c88da authored by Łukasz Nowak's avatar Łukasz Nowak

- assert varnish runnability


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37919 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b6abd6e
...@@ -133,6 +133,12 @@ class AssertSoftwareRunable(unittest.TestCase): ...@@ -133,6 +133,12 @@ class AssertSoftwareRunable(unittest.TestCase):
self.assertEqual(stderr, '') self.assertEqual(stderr, '')
self.assertTrue(stdout.startswith('Server version: Apache')) self.assertTrue(stdout.startswith('Server version: Apache'))
def test_Varnish(self):
stdout, stderr = subprocess.Popen(["parts/varnish/sbin/varnishd", "-V"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
self.assertEqual(stdout, '')
self.assertTrue(stderr.startswith('varnishd ('))
def test_Ocropus(self): def test_Ocropus(self):
stdout, stderr = subprocess.Popen(["parts/ocropus/bin/ocropus"], stdout, stderr = subprocess.Popen(["parts/ocropus/bin/ocropus"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment