finalize gps tests (#26255)

* finalize gps test before adding to ci

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 5b455f1d31
taco
Kurt Nistelberger 3 years ago committed by GitHub
parent 56ee1b27a4
commit d492af3b34
  1. 4
      tools/gpstest/run_unittest.sh
  2. 4
      tools/gpstest/test_gps.py

@ -3,8 +3,8 @@
# NOTE: can only run inside limeGPS test box!
# run limeGPS with random static location
timeout 300 ./simulate_gps_signal.py &
gps_PID=$?
timeout 300 ./simulate_gps_signal.py 32.7518 -117.1962 &
gps_PID=$(ps -aux | grep -m 1 "timeout 300" | cut -d ' ' -f 7)
echo "starting limeGPS..."
sleep 10

@ -65,7 +65,7 @@ def verify_ubloxgnss_data(socket: messaging.SubSocket, max_time: int):
sat_count.append(event.ubloxGnss.measurementReport.numMeas)
num_sat = int(sum(sat_count)/len(sat_count))
assert num_sat > 5, f"Not enough satellites {num_sat} (TestBox setup!)"
assert num_sat >= 5, f"Not enough satellites {num_sat} (TestBox setup!)"
def verify_gps_location(socket: messaging.SubSocket, max_time: int):
@ -188,4 +188,4 @@ class TestGPS(unittest.TestCase):
if __name__ == "__main__":
unittest.main()
unittest.main()

Loading…
Cancel
Save