Error in save_xunit

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error in save_xunit

Roman Simakov-2
Hello!

I got an error with following backtrace:
==================================================
roman:fbt-repository$ PYTHONPATH=~/prj/fbtest/fdb /usr/bin/python
~/prj/fbtest/fbtest/fbtest.py -v -x -b
~/prj/rdb/firebird/gen/firebird/bin/
functional.arno.indices.starting_with_02
functional.arno.indices.starting_with_02 ... ERROR
======================================================================
ERROR: functional.arno.indices.starting_with_02
----------------------------------------------------------------------
Init script
Unexpected stderr stream received from ISQL.

----------------------------------------------------------------------
Ran 1 tests in 0.566s

FAILED (errors=1)
Traceback (most recent call last):
  File "/home/roman/prj/fbtest/fbtest/fbtest.py", line 3167, in <module>
    run_tests()
  File "/home/roman/prj/fbtest/fbtest/fbtest.py", line 2849, in run_tests
    script_runner.run_tests(parser.parse_args())
  File "/home/roman/prj/fbtest/fbtest/fbtest.py", line 2270, in run_tests
    results.save_xunit(os.path.join(os.getcwd(),'results.xml'))
  File "/home/roman/prj/fbtest/fbtest/fbtest.py", line 1806, in save_xunit
    e = result[Result.EXCEPTION]
  File "/home/roman/prj/fbtest/fbtest/fbtest.py", line 1638, in __getitem__
    return self.annotations[key]
KeyError: 'exception'
==================================================

It looks like an error in save_xunit function since it uses
Result.EXCEPTION key but never assign it before.
==========fbtest.py:1805============================

                if result.outcome == Result.ERROR:
                    e = result[Result.EXCEPTION]

==================================================

This result was created by these lines which do not assign Result.EXCEPTION key:
==============fbtest.py:716=========================
                    if stderr:
                        if self.connection_character_set:
                            stderr =
stderr.decode(DB_CHAR_SET_NAME_TO_PYTHON_ENCODING_MAP[self.connection_character_set]).encode('utf-8')

fail_and_annotate_streams(Result.ERROR,'ISQL','Init
script',stderr=stderr)
                        cleanup()
                        return

==================================================

I guess save_xunit could be improved and a possibility to parse other
keys could be added. I.e. we can expect not only EXCEPTION key.

Thought?

--
Roman Simakov

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in save_xunit

philippe makowski-3
Le 10/10/13 12:33, Roman Simakov a écrit :
> I guess save_xunit could be improved and a possibility to parse other
> keys could be added. I.e. we can expect not only EXCEPTION key.
>
> Thought?
>
yes, it becomes problematic, I can't publish results in ci.ibphoenix.com
we have to work on this
Pavel, any idea ?


------------------------------------------------------------------------------
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in save_xunit

Roman Simakov-2
Please consider our patches we made locally.

2014-04-03 10:43 GMT+04:00 Philippe Makowski <[hidden email]>:

> Le 10/10/13 12:33, Roman Simakov a écrit :
>> I guess save_xunit could be improved and a possibility to parse other
>> keys could be added. I.e. we can expect not only EXCEPTION key.
>>
>> Thought?
>>
> yes, it becomes problematic, I can't publish results in ci.ibphoenix.com
> we have to work on this
> Pavel, any idea ?
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Firebird-test mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/firebird-test


--
Roman Simakov

------------------------------------------------------------------------------

_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test

patch1.diff (2K) Download Attachment
patch2.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in save_xunit

philippe makowski-3
Le 03/04/14 13:13, Roman Simakov a écrit :
> Please consider our patches we made locally.

Thanks
committed



------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Loading...