mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user