# PQT - The testsuite does not detect the end of tests

**URL:** <https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258>\
**Category:** Technical Support\
**Tags:** platform, sdk\
**Created:** [April 7, 2023, 1:50pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258 "2023-04-07T13:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.connor](https://forum.microej.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@s.connor](https://forum.microej.com/u/s.connor)\
**Post date:** [April 7, 2023, 1:50pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258/1 "2023-04-07T13:50:56Z")

</div>

Hi,  
I’m currently working on the MicroEJ on a new VEE Port using IAR compiler.  
I retrieved validation testsuite runners with the VEEPortQualificationTools repository:

> **[GitHub - MicroEJ/VEEPortQualificationTools: Tools for qualifying VEE Ports.](https://github.com/MicroEJ/VEEPortQualificationTools/tree/master/)**
>
> master/

When I try to run the FS testsuite to validate the implementation, the testsuite engine does not go to the next by itself as soon as it’s finishied. The test timeout occurs with a Failed message even if the test succeed

```auto
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] 
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] com.microej.fs.tests.TestFilePermission PASSED
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] 
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] VM END (exit code = 0)
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] 
 [testsuite:javaTestsuite] [exec] INFO: Stream automatically closed on success after 5s.
 [testsuite:javaTestsuite] [traceAnalyzer:socketTraceAnalyzer] INFO: End of trace analyzer, state is Success

```

Consequently, all testsuites fail even if the result on the UART output is good and take ages to be completed due to the systematic timeout.

Do you know what can be the reason that prevent the testsuite engine to detect the end of tests?

---

<div class="post-metadata">

**Author:** ![erwan.moreac](https://forum.microej.com/user_avatar/forum.microej.com/erwan.moreac/32/492_2.png) [@erwan.moreac](https://forum.microej.com/u/erwan.moreac)\
**Post date:** [April 7, 2023, 1:54pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258/2 "2023-04-07T13:54:47Z")

</div>

Hi Sarah,

It is possible that a program is not terminated and prevent the testsuite engine to resume the next tests.

Can you please tell me which tool is used to flash your board and what command is called in the VEE Port script `run.bat`?

Best regards,  
Erwan

---

<div class="post-metadata">

**Author:** ![s.connor](https://forum.microej.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@s.connor](https://forum.microej.com/u/s.connor)\
**Post date:** [April 7, 2023, 2:21pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258/3 "2023-04-07T14:21:28Z")

</div>

Hi Erwan,

The flash of the board is done with a J-Link probe using SWD interface.  
UART traces are retrieves through  
Inside the script `run.bat`, the command `cspybat` is the command that performs the flash of the board.

I noticed that the `cspybat` program continues to run even after the flash is completed. If I shut down the `cspybat` program, the testsuite engine goes through the next test!

How can I force this command to stop itself?

---

<div class="post-metadata">

**Author:** ![erwan.moreac](https://forum.microej.com/user_avatar/forum.microej.com/erwan.moreac/32/492_2.png) [@erwan.moreac](https://forum.microej.com/u/erwan.moreac)\
**Post date:** [April 7, 2023, 2:24pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258/4 "2023-04-07T14:24:25Z")

</div>

Hi Sarah,

Thanks for your feedback.

Ok so the problem is `cspybat` that does not stop itself. To do that, please add the argument `--download_only` at the beginning of the `cspybat` command in the file `run.bat`.  
Please rerun the testsuite and let me know if this action solves your issue.

Best regards,  
Erwan

---

<div class="post-metadata">

**Author:** ![s.connor](https://forum.microej.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@s.connor](https://forum.microej.com/u/s.connor)\
**Post date:** [April 7, 2023, 2:26pm UTC](https://forum.microej.com/t/pqt-the-testsuite-does-not-detect-the-end-of-tests/1258/5 "2023-04-07T14:26:44Z")

</div>

Hi Erwan,

With the `--download_only` argument, `cspybat` is stopped after the board flash and all tests are launched and terminated correctly.

Thanks for your help,  
Sarah
