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

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