Return correct exit status of ujs test
The `Process::Status#to_i` returns the bits in stat. If need exit status, need to use `#exitstatus`. Ref: https://ruby-doc.org/core-2.4.0/Process/Status.html#method-i-to_i
This commit is contained in:
parent
a52ff1b084
commit
e0b11a2417
@ -46,7 +46,7 @@ namespace :test do
|
||||
end
|
||||
|
||||
system("npm run lint && bundle exec ruby ../ci/qunit-selenium-runner.rb http://localhost:4567/")
|
||||
status = $?.to_i
|
||||
status = $?.exitstatus
|
||||
ensure
|
||||
Process.kill("KILL", pid) if pid
|
||||
FileUtils.rm_rf("log")
|
||||
|
Loading…
Reference in New Issue
Block a user