fix cucumber tests running on Windows
This commit is contained in:
parent
d0175798bf
commit
a457d69034
@ -22,10 +22,10 @@ SHUTDOWN_TIMEOUT = 10
|
|||||||
DEFAULT_LOAD_METHOD = 'datastore'
|
DEFAULT_LOAD_METHOD = 'datastore'
|
||||||
OSRM_ROUTED_LOG_FILE = 'osrm-routed.log'
|
OSRM_ROUTED_LOG_FILE = 'osrm-routed.log'
|
||||||
|
|
||||||
if ENV['OS']==/Windows.*/ then
|
if ENV['OS']=~/Windows.*/ then
|
||||||
TERMSIGNAL='TERM'
|
|
||||||
else
|
|
||||||
TERMSIGNAL=9
|
TERMSIGNAL=9
|
||||||
|
else
|
||||||
|
TERMSIGNAL='TERM'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -72,8 +72,8 @@ end
|
|||||||
|
|
||||||
def verify_existance_of_binaries
|
def verify_existance_of_binaries
|
||||||
["osrm-extract", "osrm-prepare", "osrm-routed"].each do |bin|
|
["osrm-extract", "osrm-prepare", "osrm-routed"].each do |bin|
|
||||||
unless File.exists? "#{BIN_PATH}/#{bin}"
|
unless File.exists? "#{BIN_PATH}/#{bin}#{EXE}"
|
||||||
raise "*** #{BIN_PATH}/#{bin} is missing. Build failed?"
|
raise "*** #{BIN_PATH}/#{bin}#{EXE} is missing. Build failed?"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user