Unit test Wio Terminal "could not open port" while testing

Here it is:

➜ pio test | ts "%.T"
20:21:55.277869 Verbose mode can be enabled via `-v, --verbose` option
20:21:55.277974 Collected 1 items
20:21:55.278000 
20:21:55.278017 Processing test_embedded in seeed_wio_terminal environment
20:21:55.278035 --------------------------------------------------------------------------------
20:21:55.278417 Building...
20:22:00.141145 Uploading...
20:22:07.893938 Testing...
20:22:07.894086 If you don't see any output for the first 10 secs, please reset board (press reset button)
20:22:07.894156 
[Errno 13] could not open port /dev/ttyACM0: [Errno 13] Permission denied: '/dev/ttyACM0'
========================= [FAILED] Took 12.88 seconds =========================
20:22:08.163414 
Test           Environment         Status    Duration
-------------  ------------------  --------  ------------
test_embedded  seeed_wio_terminal  FAILED    00:00:12.885
==================== 1 failed, 0 succeeded in 00:00:12.885 ====================

and

➜ sudo dmesg -W | ts "%.T"
20:22:04.769607 [ 6326.724031] usb 1-2: USB disconnect, device number 39
20:22:05.056316 [ 6327.016836] usb 1-2: new full-speed USB device number 40 using xhci_hcd
20:22:05.196276 [ 6327.159113] usb 1-2: New USB device found, idVendor=2886, idProduct=002d, bcdDevice=42.01
20:22:05.196410 [ 6327.159119] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
20:22:05.196459 [ 6327.159123] usb 1-2: Product: Wio Terminal
20:22:05.196506 [ 6327.159126] usb 1-2: Manufacturer: Seeed Studio
20:22:05.196549 [ 6327.159129] usb 1-2: SerialNumber: 7CEC16765337533438202020FF0F3C36
20:22:05.199597 [ 6327.162935] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
20:22:05.203045 [ 6327.163695] usb-storage 1-2:1.2: USB Mass Storage device detected
20:22:05.203247 [ 6327.164127] scsi host1: usb-storage 1-2:1.2
20:22:05.203386 [ 6327.165835] hid-generic 0003:2886:002D.0010: hiddev0,hidraw0: USB HID v1.00 Device [Seeed Studio Wio Terminal] on usb-0000:00:14.0-2/input3
20:22:06.208091 [ 6328.170569] scsi 1:0:0:0: Direct-Access     Wio Term inal             1.00 PQ: 0 ANSI: 2
20:22:06.208165 [ 6328.171274] sd 1:0:0:0: [sdb] 16000 512-byte logical blocks: (8.19 MB/7.81 MiB)
20:22:06.208187 [ 6328.171533] sd 1:0:0:0: [sdb] Write Protect is off
20:22:06.208207 [ 6328.171535] sd 1:0:0:0: [sdb] Mode Sense: 0f 00 00 00
20:22:06.208225 [ 6328.171716] sd 1:0:0:0: [sdb] No Caching mode page found
20:22:06.208243 [ 6328.171717] sd 1:0:0:0: [sdb] Assuming drive cache: write through
20:22:06.232861 [ 6328.194441]  sdb:
20:22:06.232936 [ 6328.195986] sd 1:0:0:0: [sdb] Attached SCSI removable disk
20:22:07.309510 [ 6329.270450] usb 1-2: USB disconnect, device number 40
20:22:07.309612 [ 6329.270532] cdc_acm 1-2:1.0: failed to set dtr/rts
20:22:07.762969 [ 6329.723471] usb 1-2: new full-speed USB device number 41 using xhci_hcd
20:22:07.909621 [ 6329.870653] usb 1-2: New USB device found, idVendor=2886, idProduct=802d, bcdDevice= 1.00
20:22:07.909731 [ 6329.870657] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
20:22:07.909825 [ 6329.870659] usb 1-2: Product: Seeed Wio Terminal
20:22:07.909903 [ 6329.870661] usb 1-2: Manufacturer: Seeed
20:22:07.909961 [ 6329.870663] usb 1-2: SerialNumber: 7CEC16765337533438202020FF0F3C36
20:22:07.910022 [ 6329.872653] cdc_acm 1-2:1.0: ttyACM0: USB ACM device