From e0b11a241783ddf087ef383fa931b5b63c3a805e Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Fri, 20 Oct 2017 15:06:37 +0900 Subject: 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 --- actionview/Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionview/Rakefile b/actionview/Rakefile index 5f1c055692..9e5ef35334 100644 --- a/actionview/Rakefile +++ b/actionview/Rakefile @@ -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") -- cgit v1.2.3