dev-ruby/maxitest: apply test fixes to other versions too

from afa8323a67

Bug: https://bugs.gentoo.org/940741
Closes: https://bugs.gentoo.org/977438
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-06-14 21:34:59 +01:00
parent 4487e443c1
commit 237f1426f2
4 changed files with 11 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -36,6 +36,8 @@ all_ruby_prepare() {
sed -e '/shows backtrace for/askip' \
-e '/describe.*line/ s/describe/xdescribe/' \
-e '/describe.*color/ s/describe/xdescribe/' \
-e '/stops on ctrl+c and prints errors/askip' \
-e '/shows backtraces when in verbose mode/askip' \
-i spec/maxitest_spec.rb || die
}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,6 +37,8 @@ all_ruby_prepare() {
sed -e '/shows backtrace for/askip' \
-e '/describe.*line/ s/describe/xdescribe/' \
-e '/describe.*color/ s/describe/xdescribe/' \
-e '/stops on ctrl+c and prints errors/askip' \
-e '/shows backtraces when in verbose mode/askip' \
-i spec/maxitest_spec.rb || die
}
@@ -45,15 +47,6 @@ each_ruby_prepare() {
sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \
-e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -rmaxitest/version -S bin/mtest:' \
-i spec/maxitest_spec.rb || die
case ${RUBY} in
*ruby34)
# Avoid test failing due to changed messages in Ruby.
sed -e '/stops on ctrl+c and prints errors/ s/it/xit/' \
-e '/shows backtraces when in verbose mode/ s/it/xit/' \
-i spec/maxitest_spec.rb || die
;;
esac
}
each_ruby_test() {

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -37,6 +37,8 @@ all_ruby_prepare() {
sed -e '/shows backtrace for/askip' \
-e '/describe.*line/ s/describe/xdescribe/' \
-e '/describe.*color/ s/describe/xdescribe/' \
-e '/stops on ctrl+c and prints errors/askip' \
-e '/shows backtraces when in verbose mode/askip' \
-i spec/maxitest_spec.rb || die
}
@@ -45,15 +47,6 @@ each_ruby_prepare() {
sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \
-e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -rmaxitest/version -S bin/mtest:' \
-i spec/maxitest_spec.rb || die
case ${RUBY} in
*ruby34)
# Avoid test failing due to changed messages in Ruby.
sed -e '/stops on ctrl+c and prints errors/ s/it/xit/' \
-e '/shows backtraces when in verbose mode/ s/it/xit/' \
-i spec/maxitest_spec.rb || die
;;
esac
}
each_ruby_test() {

View File

@@ -37,6 +37,8 @@ all_ruby_prepare() {
sed -e '/shows backtrace for/askip' \
-e '/describe.*line/ s/describe/xdescribe/' \
-e '/describe.*color/ s/describe/xdescribe/' \
-e '/stops on ctrl+c and prints errors/askip' \
-e '/shows backtraces when in verbose mode/askip' \
-i spec/maxitest_spec.rb || die
}
@@ -45,15 +47,6 @@ each_ruby_prepare() {
sed -e '/\(run_cmd\|sh\)/ s:ruby :'${RUBY}' :' \
-e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -rmaxitest/version -S bin/mtest:' \
-i spec/maxitest_spec.rb || die
case ${RUBY} in
*ruby34)
# Avoid test failing due to changed messages in Ruby.
sed -e '/stops on ctrl+c and prints errors/ s/it/xit/' \
-e '/shows backtraces when in verbose mode/ s/it/xit/' \
-i spec/maxitest_spec.rb || die
;;
esac
}
each_ruby_test() {