aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/Rakefile
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-10-20 15:06:37 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-10-20 15:08:48 +0900
commite0b11a241783ddf087ef383fa931b5b63c3a805e (patch)
tree95b47a270170218709c4a0f95caf31b5a2c1c7cc /actionview/Rakefile
parenta52ff1b0848e8bb2310738ec7b762b82edbbfcb2 (diff)
downloadrails-e0b11a241783ddf087ef383fa931b5b63c3a805e.tar.gz
rails-e0b11a241783ddf087ef383fa931b5b63c3a805e.tar.bz2
rails-e0b11a241783ddf087ef383fa931b5b63c3a805e.zip
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
Diffstat (limited to 'actionview/Rakefile')
-rw-r--r--actionview/Rakefile2
1 files changed, 1 insertions, 1 deletions
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")