[前][次][番号順一覧][スレッド一覧]

ruby-changes:57527

From: Kazuhiro <ko1@a...>
Date: Wed, 4 Sep 2019 11:52:17 +0900 (JST)
Subject: [ruby-changes:57527] b0d0b850bc (master): Use RUBY_TESTOPTS instead of TESTOPTS

https://git.ruby-lang.org/ruby.git/commit/?id=b0d0b850bc

From b0d0b850bc61e158fb7caac4123af824b12938f1 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Wed, 4 Sep 2019 11:50:37 +0900
Subject: Use RUBY_TESTOPTS instead of TESTOPTS

https://github.com/ruby/ruby/pull/2417#issuecomment-526884646
> `TESTOPTS` is defaulted to `$(RUBY_TESTOPTS)` in `common.mk` file.
> Use the latter name to pass options via an environment variable.

diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 7718e01..ee48db7 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -43,14 +43,14 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L43
       - name: Tests
         run: make -s ${{ matrix.test_task }}
         env:
-          TESTOPTS: "$JOBS -q --tty=no"
+          RUBY_TESTOPTS: "$JOBS -q --tty=no"
           MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
         if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
       # test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
       - name: Tests
         run: make -s ${{ matrix.test_task }}
         env:
-          TESTOPTS: "$JOBS -q --tty=no"
+          RUBY_TESTOPTS: "$JOBS -q --tty=no"
         continue-on-error: true
         if: matrix.test_task == 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
       - name: Leaked Globals
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index e1cfa2d..a6ec9f9 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -46,14 +46,14 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L46
       - name: Tests
         run: make -s ${{ matrix.test_task }}
         env:
-          TESTOPTS: "$JOBS -q --tty=no"
+          RUBY_TESTOPTS: "$JOBS -q --tty=no"
           MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies
         if: matrix.test_task != 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
       # test-bundled-gems is separated for marking `continue-on-error` because it randomly fails.
       - name: Tests (test-bundled-gems)
         run: make -s ${{ matrix.test_task }}
         env:
-          TESTOPTS: "-q --tty=no"
+          RUBY_TESTOPTS: "-q --tty=no"
         continue-on-error: true
         if: matrix.test_task == 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
       - name: Leaked Globals
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]