Merge pull request #1960 from Project-OSRM/cucumber-exit-early

Ensure key command line programs can be run before running cucumber tests
This commit is contained in:
Dane Springmeyer 2016-02-10 16:03:17 -08:00
commit 7d0955c0f4

View File

@ -76,6 +76,10 @@ def verify_existance_of_binaries
unless File.exists? "#{BIN_PATH}/#{bin}#{EXE}"
raise "*** #{BIN_PATH}/#{bin}#{EXE} is missing. Build failed?"
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