Use which(1), not bash's type function

This commit is contained in:
Max Brunsfeld
2015-02-04 15:22:39 -08:00
parent f1df254a66
commit 28f280183e

View File

@@ -12,7 +12,7 @@ SocketPath = path.join(os.tmpdir(), "atom-integration-test.sock")
ChromeDriverPort = 9515
describe "Starting Atom", ->
if spawnSync("type", ["-P", "chromedriver"]).status isnt 0
if spawnSync("which", ["chromedriver"]).status isnt 0
console.log "Skipping integration tests because the `chromedriver` executable was not found."
return