Comment 7 for bug 1163661

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

I just committed a fix for this in lava-dispatcher trunk @ r578. Following is the patch for reference:

<snip>
=== 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:31:13 +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 = []
</snip>