Move command parsing tests into separate class
Change-Id: I6aeba632d69b1867c7d7745f0c8c9fd8f8e275d9
This commit is contained in:
parent
03889e6465
commit
96ced40ec2
|
@ -52,9 +52,10 @@ class PackagerApp(object):
|
||||||
# Put single-quotes around each entry so that things like '$' signs in
|
# Put single-quotes around each entry so that things like '$' signs in
|
||||||
# segment templates won't be interpreted as shell variables.
|
# segment templates won't be interpreted as shell variables.
|
||||||
self.packaging_command_line = ' '.join(["'%s'" % entry for entry in cmd])
|
self.packaging_command_line = ' '.join(["'%s'" % entry for entry in cmd])
|
||||||
self.packaging_result = subprocess.call(cmd)
|
packaging_result = subprocess.call(cmd)
|
||||||
if self.packaging_result != 0:
|
if packaging_result != 0:
|
||||||
print '%s returned non-0 status' % self.packaging_command_line
|
print '%s returned non-0 status' % self.packaging_command_line
|
||||||
|
return packaging_result
|
||||||
|
|
||||||
def GetCommandLine(self):
|
def GetCommandLine(self):
|
||||||
return self.packaging_command_line
|
return self.packaging_command_line
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue