dev-ruby/localhost: fix tests using /tmp

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-05-13 09:02:51 +02:00
parent 8a7bae1c88
commit a2e621c964
No known key found for this signature in database
GPG Key ID: DB347F938654FA34

View File

@ -30,6 +30,9 @@ all_ruby_prepare() {
sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
sed -i -e '/covered/Id' config/sus.rb || die
sed -e "s:/tmp/state:${TMP}/state:" \
-i test/localhost/state.rb || die
# Avoid unpackaged sus-fixtures-async-http which has a huge dependency tree.
rm -f test/localhost/protocol.rb || die
}