test_determinism: Add more output when failing

This commit is contained in:
Daniel Santos-Olivan 2021-04-22 11:05:09 +02:00 committed by bernat
parent 88d732e899
commit 5f4583bd14
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class TestDeterminism(SmokeTest):
for j in range(0, num_actors1):
loc1 = record1.vehicle_position_list[j]
loc2 = record2.vehicle_position_list[j]
self.assertEqual(loc1, loc2, msg="Actor location missmatch at frame " + str(record1.frame))
self.assertEqual(loc1, loc2, msg="Actor location missmatch at frame %s. %s != %s"
% (str(record1.frame), str(loc1), str(loc2)))
def spawn_vehicles(self, world, blueprint_transform_list):
traffic_manager = self.client.get_trafficmanager(TM_PORT)