VTS run error on Hikey 620

Hi,

I have followed the steps from VTS user manual (https://android.googlesource.com/platform/test/vts/+/HEAD/doc/user_manual.md) and built the VTS for Hikey 620.

Now if I give run vts after entering into vts-tradefed I’m getting following error
vts-tf > run vts
02-12 17:42:16 D/CommandScheduler: No available device matching all the config’s requirements for cmd id 1.
The command [vts] will be rescheduled.

I could not find any solution. Please help.

Do you have an adb connection to the device? Run adb devices and see if the board is there.

Thank you for replying.

I have checked adb devices. I’m getting a single digit serial number.
$ adb devices
List of devices attached
5 device
But when I’m getting into vts-tradefed no device is detected and I’m getting above error when I try to run vts.

That’s weird. Maybe try resetting the serial number to see if it helps.
https://source.android.com/setup/build/devices#960serial
Make sure to put the board in fastboot mode first.

Does resetting serial number works for HiKey 620. The step in the link is mentioned for HiKey 960.

Sorry. My mistake. Please try:
sudo fastboot oem serialno
or
sudo fastboot oem serialno set {serialno string, 16 characters long}

Thank you very much. It’s working now.