Message ID | 20130408050019.8401.86793.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/lava_test_shell.py' --- lava_dispatcher/lava_test_shell.py 2013-04-05 09:27:07 +0000 +++ lava_dispatcher/lava_test_shell.py 2013-04-08 04:57:50 +0000 @@ -239,6 +239,13 @@ continue res['log_lineno'] = lineno res['log_filename'] = 'stdout.log' + if 'measurement' in res: + try: + res['measurement'] = decimal.Decimal(res['measurement']) + except decimal.InvalidOperation: + logging.warning("Invalid measurement %s" % ( + res['measurement'])) + del res['measurement'] results_from_log_file.append(res) results_from_directories = []