tps: make the "extra-serial" parameter optional.

parent a65556b6
......@@ -136,9 +136,9 @@ class Suite(object):
raise TpsInvalid(msg)
self.serial = self.serial.strip(',')
if not self.extra_serial:
msg = 'invalid optional serial number [{0}]'.format(self.extra_serial)
raise TpsInvalid(msg)
self.extra_serial = self.extra_serial.strip(',')
self.extra_serial = '0000'
else :
self.extra_serial = self.extra_serial.strip(',')
warnings.simplefilter('error')
try:
......
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