[Compass-ci] [PATCH lkp-tests] bootstrap.sh: optimize the test_ping logic