Comment 5 for bug 1163661

Revision history for this message
Yongqin Liu (liuyq0307) wrote : Re: [Bug 1163661] Re: Not able to map float value to measurement field

in lava-android-test, it is done in such way.
If that's not right, please help to fix the following place too.
http://bazaar.launchpad.net/~linaro-validation/lava-android-test/trunk/view/head:/lava_android_test/testdef.py#L527

On 8 April 2013 11:21, Senthil Kumaran S <email address hidden> wrote:

> Hi Yongqin,
>
> On Mon, 2013-04-08 at 03:08 +0000, Yongqin Liu wrote:
> > add some lines like following should be OK I guess:
> >
> > if 'measurement' in in res:
> > res['measurement'] = float(res['measurement'])
>
> This will not be the right fix as Michael pointed out. The DocumentIO
> class in io.py of linaro-python-dashboard-bundle says 'use_decimal' for
> json.dumps() hence the above fix will not work. Will come with a better
> fix in sometime.
>
> Thank You.
>
> --
> Senthil Kumaran
> http://www.stylesen.org/
> http://www.sasenthilkumaran.com/
>
> --
> You received this bug notification because you are a member of Linaro
> Validation Team, which is subscribed to LAVA Dispatcher.
> https://bugs.launchpad.net/bugs/1163661
>
> Title:
> Not able to map float value to measurement field
>
> Status in LAVA Dispatcher:
> In Progress
>
> Bug description:
> After parsing, while mapping the fields to values lava_test_shell, It
> was throwing error
>
> root@master [rc=0]# <LAVA_DISPATCHER>2013-04-02 09:06:13 AM WARNING:
> [ACTION-E] lava_test_shell is finished with error (ValidationError:
> Object has incorrect type (expected number)
> object_expr='object.test_runs[0].test_results[0].measurement',
>
> schema_expr='schema.properties.test_runs.items.properties.test_results.items.properties.measurement.type')).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/lava-dispatcher/+bug/1163661/+subscriptions
>

--
Thanks,
Yongqin Liu
---------------------------------------------------------------
#mailing list
<email address hidden> <email address hidden>
http://lists.linaro.org/mailman/listinfo/linaro-android
<email address hidden> <email address hidden>
http://lists.linaro.org/pipermail/linaro-validation