[PATCH] rtemstoolkit: Fix imports and fix all unittests.

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 5 06:32:47 UTC 2018



On 05/10/2018 08:28, Chris Johns wrote:
> On 05/10/2018 16:07, Sebastian Huber wrote:
>> Problems appear later (this is expected):
>>
>> $ ./rtems-test --version
>> Traceback (most recent call last):
>>    File "./rtems-test", line 39, in <module>
>>      import rt.test
>> ...
>>    File "/c/msys2/home/test/share/rtems/tester/rt/tftpy/TftpStates.py", line 371
>>      raise TftpException, "Dynamic path %s not permitted" % path
>>                         ^
>> SyntaxError: invalid syntax
>>
> I do not see this. I see this ...
>
> $ ./rtems-test --version
> RTEMS Testing - Tester, undefined.not_released
>   Command Line: ./rtems-test --version
>   Python: 2.7.14 (default, Nov  9 2017, 09:50:21)  [GCC 7.2.0 64 bit (AMD64)]
> Host: Windows-10-10.0.17134-SP0 (Windows weng 10 10.0.17134 AMD64 Intel64 Family
> 6 Model 42 Stepping 7, GenuineIntel)
> error: RTEMS BSP not provided or an invalid option
>
> Is --version an option? It is not listed in the --help.

You use Python 2. I have Python 3. It doesn't run that far to figure out 
that this option is not available.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list