Ensure key command line programs can be run before running cucumber tests
- Otherwise, currently, if osrm-extract crashes at startup then the tests continue on and will crash many many times. - This also tests that --help returns an exit code of zero and will catch if this behavior ever changes or is inconsistent between the command line programs
This commit is contained in:
parent
bb06bfbbd7
commit
2e762d05f9
@ -76,6 +76,10 @@ def verify_existance_of_binaries
|
|||||||
unless File.exists? "#{BIN_PATH}/#{bin}#{EXE}"
|
unless File.exists? "#{BIN_PATH}/#{bin}#{EXE}"
|
||||||
raise "*** #{BIN_PATH}/#{bin}#{EXE} is missing. Build failed?"
|
raise "*** #{BIN_PATH}/#{bin}#{EXE} is missing. Build failed?"
|
||||||
end
|
end
|
||||||
|
unless system "#{BIN_PATH}/#{bin}#{EXE} --help"
|
||||||
|
log "*** Exited with code #{$?.exitstatus}.", :preprocess
|
||||||
|
raise "*** #{BIN_PATH}/#{bin}#{EXE} --help exited with code #{$?.exitstatus}."
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user