diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-20 15:06:37 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-10-20 15:08:48 +0900 |
commit | e0b11a241783ddf087ef383fa931b5b63c3a805e (patch) | |
tree | 95b47a270170218709c4a0f95caf31b5a2c1c7cc /actionview/Rakefile | |
parent | a52ff1b0848e8bb2310738ec7b762b82edbbfcb2 (diff) | |
download | rails-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/Rakefile | 2 |
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") |