19 Commits
Author SHA1 Message Date
Takashi Kokubun dc2a62e14c test_commit_email.rb: Ensure #teardown doesn't fail
if test is omitted.

Follow up c4e090def1
2025-12-17 10:22:00 -08:00
Hiroshi SHIBATA 3d8dfbf51e Skip TestCommitEmail if git is not available.
https://github.com/ruby/actions/actions/runs/19420968008/job/55558315338

```
    1) Error:
  TestCommitEmail#test_sendmail_encoding:
  Test::Unit::ProxyError: No such file or directory - git
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:534:in 'Kernel#spawn'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:534:in 'Open3.popen_run'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:379:in 'Open3.popen2'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/lib/open3.rb:785:in 'Open3.capture2'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:89:in 'TestCommitEmail#git'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:13:in 'block in TestCommitEmail#setup'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:12:in 'Dir.chdir'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:12:in 'TestCommitEmail#setup'

    2) Error:
  TestCommitEmail#test_sendmail_encoding:
  Test::Unit::ProxyError: no implicit conversion of nil into String
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:37:in 'File.unlink'
      /home/runner/work/actions/actions/ruby-4.0.0-preview2/tool/test/test_commit_email.rb:37:in 'TestCommitEmail#teardown'
```
2025-11-17 16:08:31 +09:00
Kazuhiro NISHIYAMA b4b7809f0b Use path in tmpdir instead of IO::NULL
The path already used in tool/test/test_sync_default_gems.rb .

Try to fix errors on Windows.

https://github.com/ruby/ruby/actions/runs/19316448613/job/55248700110
2025-11-13 13:34:33 +09:00
Kazuhiro NISHIYAMA 37a05b591c Ignore ~/.gitconfig
I use `commit.gpgsign=true`, so I want to ignore it in tests.
2025-11-13 09:34:08 +09:00
Nobuyoshi Nakada c4e090def1 test_commit_email.rb: Clean up temporary files 2025-10-29 10:06:02 +09:00
Nobuyoshi Nakada fa883a4de8 test_commit_email.rb: Simply use sh
`env` on macOS resets DYLD environment variables that are needed to
run ruby configured with `--enable-load-relative`.  Use simple
commands instead, and `/bin/sh` that is specified in POSIX is more
portable than `/usr/bin/env`.
2025-10-11 11:01:56 +09:00
Takashi Kokubun a59c5860a6 test_commit_email.rb: Split out as binary for --with-gmp
https://github.com/ruby/ruby/actions/runs/18365998053/job/52318906076
2025-10-08 22:30:43 -07:00
Takashi Kokubun f012543989 test_commit_email.rb: Stop testing the un-encoded name
Hoping to work around failures on --with-gmp CI:
https://github.com/ruby/ruby/actions/runs/18365603616/job/52317792903
2025-10-08 21:59:03 -07:00
Takashi Kokubun 127318f4cb test_commit_email.rb: Test the encoding of commit messages 2025-10-08 21:40:40 -07:00
Takashi Kokubun cd8a4406c1 test_commit_email.rb: Skip the sendmail test on Windows
We use only ubuntu-latest on post_push.yml anyway.
2025-10-08 21:32:56 -07:00
Takashi Kokubun a21cde942c test_commit_email.rb: Fix the timezone for commit-email.rb
as well
2025-10-08 21:31:05 -07:00
Takashi Kokubun f8c841dbd5 test_commit_email.rb: Use a fixed timezone 2025-10-08 21:26:54 -07:00
Takashi Kokubun 53d1731b68 commit-email.rb: Remove legacy SVN headers 2025-10-08 21:22:35 -07:00
Takashi Kokubun 08b34bf909 test_commit_email.rb: Remove an unused local variable 2025-10-08 21:16:03 -07:00
Takashi Kokubun 438ea7d69e test_commit_email.rb: Test the content of an email 2025-10-08 21:09:49 -07:00
Takashi Kokubun 6922e969f1 Allow test-tool to use bundled gems in child processes (#14794) 2025-10-08 21:07:11 -07:00
Takashi Kokubun 77b62a8292 Revert "commit-email.rb: Use base64 instead of nkf"
This reverts commit dbb5972b34.

It didn't work, sorry.
2025-10-08 17:03:17 -07:00
Takashi Kokubun dbb5972b34 commit-email.rb: Use base64 instead of nkf
which makes it more obvious what it's doing.
2025-10-08 16:32:10 -07:00
Takashi Kokubun afb21f3498 test_commit_email.rb: Stop printing LoadError
on a require attempt
2025-10-08 16:23:53 -07:00