mirror of
https://github.com/samba-team/samba.git
synced 2025-08-10 21:49:28 +03:00
s4:python tests __init__.py - do not depend on "subprocess.check_call()"
Method not present in Python 2.4 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Jan 10 00:41:59 CET 2012 on sn-devel-104
This commit is contained in:
@ -154,7 +154,10 @@ class BlackboxTestCase(TestCase):
|
||||
|
||||
def check_run(self, line):
|
||||
line = self._make_cmdline(line)
|
||||
subprocess.check_call(line, shell=True)
|
||||
p = subprocess.Popen(line, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
retcode = p.wait()
|
||||
if retcode:
|
||||
raise BlackboxProcessError(retcode, line, p.stdout.read(), p.stderr.read())
|
||||
|
||||
def check_output(self, line):
|
||||
line = self._make_cmdline(line)
|
||||
|
Reference in New Issue
Block a user