Last change
on this file was
910,
checked in by osimons, 13 years ago
|
Updated copyright to 2010.
|
-
Property svn:eol-style set to
native
|
File size:
866 bytes
|
Line | |
---|
1 | # -*- coding: utf-8 -*- |
---|
2 | # |
---|
3 | # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> |
---|
4 | # Copyright (C) 2007-2010 Edgewall Software |
---|
5 | # All rights reserved. |
---|
6 | # |
---|
7 | # This software is licensed as described in the file COPYING, which |
---|
8 | # you should have received as part of this distribution. The terms |
---|
9 | # are also available at http://bitten.edgewall.org/wiki/License. |
---|
10 | |
---|
11 | from StringIO import StringIO |
---|
12 | |
---|
13 | from bitten.build import api |
---|
14 | |
---|
15 | |
---|
16 | class CommandLine(api.CommandLine): |
---|
17 | |
---|
18 | def __init__(self, returncode=0, stdout='', stderr=''): |
---|
19 | self.returncode = returncode |
---|
20 | self.stdout = StringIO(stdout) |
---|
21 | self.stderr = StringIO(stderr) |
---|
22 | |
---|
23 | def __call__(self, executable, args, input=None, cwd=None): |
---|
24 | return self |
---|
25 | |
---|
26 | def execute(self): |
---|
27 | return map(lambda x,y: (x,y), |
---|
28 | self.stdout.readlines(), |
---|
29 | self.stderr.readlines()) |
---|
Note: See
TracBrowser
for help on using the repository browser.