-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
Working on rebasing/updating ##2032, I found that LUA errors (eg. syntax errors or nil objects) are not reported when running cucumber tests, nor are there any reference to LUA file or line number. All I get is a generic 'osrm-extract killed'. This makes working on LUA profiles and refactoring hard.
Example
1) Scenario: Car - Use motorway_link when reasonable - features/car/link.feature:10
Step: When I route I should get - features/car/link.feature:28
Step Definition: features/step_definitions/routing.js:4
Message:
Error: osrm-extract killed by signal SIGABRT: /Users/emil/code/osrm-backend/build/osrm-extract --profile /Users/emil/code/osrm-backend/profiles/car.lua /Users/emil/code/osrm-backend/test/cache/car/link.feature/0fe4f83497f36d2320eb952191ee01f7/fe94ae7c9b17d24c18f1cf1c8995ef10/10_car_use_motorway_link_when_reasonable.osm
at /Users/emil/code/osrm-backend/features/support/data.js:174:37
at ChildProcess.exithandler (child_process.js:209:5)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:827:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)