I have a raspberry pi running a remote platformio agent (in a virtualenv).
On my laptop I have a sample project that I want to remotely test.
When I run pio remote test -e d1_mini
it starts to build, generates an error (somewhere during the build it says “No names found, cannot describe anything”. The build fails (I don’t know why, compilation and linking itself succeeds) but the test continues.
Next it says testing project remotely
. nothing after that.
However, when I press ctrl+c to quit, it suddently does give me the output: processing, uploading…
Now the test report itself doesn’t get captured. It is like the board doesn’t reset. But when I press the reset button it still doesn’t capture the test report. Opening the serial monitor (remotely) does work.
Here’s the complete output (edited for readability):
$ pio remote test -v -e d1_mini
PIO Plus (https://pioplus.com) v2.5.4
Building project locally
Verbose mode can be enabled via `-v, --verbose` option
Collected 1 items
Processing * in d1_mini environment
-------------------------------------------------
Building...
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 (Stage) 2.3.0-alpha.2 #3500fb2 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: toolchain-xtensa 2.40802.190218 (4.8.2), framework-arduinoespressif8266 8dd068e, tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 46 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <mod1>
Generating .pio\build\d1_mini\core\core_version.h
Generating LD script .pio\build\d1_mini\ld\local.eagle.app.v6.common.ld
Compiling .pio\build\d1_mini\liba55\mod1\mod1.cpp.o
Compiling .pio\build\d1_mini\UnityTestLib\unity.c.o
Archiving .pio\build\d1_mini\libFrameworkArduinoVariant.a
fatal: No names found, cannot describe anything.
Compiling .pio\build\d1_mini\FrameworkArduino\StackThunk.cpp.o
...
Archiving .pio\build\d1_mini\libFrameworkArduino.a
Linking .pio\build\d1_mini\firmware.elf
Building .pio\build\d1_mini\firmware.bin
Retrieving maximum program size .pio\build\d1_mini\firmware.elf
Checking size .pio\build\d1_mini\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 33.0% (used 27056 bytes from 81920 bytes)
PROGRAM: [== ] 24.1% (used 251679 bytes from 1044464 bytes)
Creating BIN file ".pio\build\d1_mini\firmware.bin" using ".pio\build\d1_mini\firmware.elf"
======= [FAILED] Took 5.46 seconds =======
Testing project remotely
Aborted!
$ Verbose mode can be enabled via `-v, --verbose` option
Collected 1 items
Processing * in d1_mini environment
-------------------------------------------------
Uploading...
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 2.2.3 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: framework-arduinoespressif8266 2.20502.0 (2.5.2), tool-esptool 1.413.0 (4.13), tool-esptoolpy 1.20600.0 (2.6.0), tool-mkspiffs 1.200.0 (2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain+, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/d1_mini/firmware.bin
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
MAC: 5c:cf:7f:c3:b0:29
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 255824 bytes to 186923...
Writing at 0x00000000... (8 %)
Writing at 0x00004000... (16 %)
Writing at 0x00008000... (25 %)
Writing at 0x0000c000... (33 %)
Writing at 0x00010000... (41 %)
Writing at 0x00014000... (50 %)
Writing at 0x0001c000... (66 %)
Writing at 0x00020000... (75 %)
Writing at 0x00024000... (83 %)
Writing at 0x00028000... (91 %)
Writing at 0x0002c000... (100 %)
Wrote 255824 bytes (186923 compressed) at 0x00000000 in 17.7 seconds (effective 115.9 kbit/s)...
Leaving...
Hard resetting via RTS pin...
Testing...
$ pio remote device monitor -b 74880
PIO Plus (https://pioplus.com) v2.5.4
Starting Serial Monitor on DEVELOP:/dev/ttyUSB0
--- Miniterm on socket://localhost:50850 74880,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8dd068eb
~ld
test\test_embedded.cpp:29:test_mod1:PASS
-----------------------
1 Tests 0 Failures 0 Ignored
OK
--- exit ---
Mind that to generate this report, I have to manually abort after it says Testing project remotely
but it resumes automatically. After uploading I also manually stop the test and (manually) open the serial monitor.