fix parameter name for maximum number of location in distance table plugin

This commit is contained in:
Dennis Luxen
2015-01-08 17:27:36 +01:00
parent 0e5a448d04
commit b1a12768e1
3 changed files with 14 additions and 14 deletions
+9 -9
View File
@@ -24,9 +24,9 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0
Scenario: osrm-routed - Help, short
@@ -49,9 +49,9 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0
Scenario: osrm-routed - Help, long
@@ -74,7 +74,7 @@ Feature: osrm-routed command line options: help
And stdout should contain "--ip"
And stdout should contain "--port"
And stdout should contain "--threads"
And stdout should contain "--sharedmemory"
And stdout should contain "--max_locations_distance_table"
And stdout should contain 25 lines
And stdout should contain "--shared-memory"
And stdout should contain "--max-table-size"
And stdout should contain 24 lines
And it should exit with code 0
+2 -2
View File
@@ -4,7 +4,7 @@ require 'json'
# Only one isntance of osrm-routed is ever launched, to avoid collisions.
# The default is to keep osrm-routed running and load data with datastore.
# however, osrm-routed it shut down and relaunched for each scenario thats
# however, osrm-routed it shut down and relaunched for each scenario thats
# loads data directly.
class OSRMLoader
@@ -118,7 +118,7 @@ class OSRMLoader
def osrm_up
return if osrm_up?
@@pid = Process.spawn("#{BIN_PATH}/osrm-routed --sharedmemory=1 --port #{OSRM_PORT}",:out=>OSRM_ROUTED_LOG_FILE, :err=>OSRM_ROUTED_LOG_FILE)
@@pid = Process.spawn("#{BIN_PATH}/osrm-routed --shared-memory=1 --port #{OSRM_PORT}",:out=>OSRM_ROUTED_LOG_FILE, :err=>OSRM_ROUTED_LOG_FILE)
Process.detach(@@pid) # avoid zombie processes
end
end