From f96e664d9bb9ba467f7eb143a1db26898969d8c9 Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Fri, 1 Jul 2022 00:10:04 +0900 Subject: [PATCH] app-misc/watchexec: fix test file for release build Closes: https://bugs.gentoo.org/855326 Signed-off-by: YOSHIOKA Takuma --- app-misc/watchexec/watchexec-1.20.2.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app-misc/watchexec/watchexec-1.20.2.ebuild b/app-misc/watchexec/watchexec-1.20.2.ebuild index 3d7e96ab14..5165d9a9d6 100644 --- a/app-misc/watchexec/watchexec-1.20.2.ebuild +++ b/app-misc/watchexec/watchexec-1.20.2.ebuild @@ -318,6 +318,14 @@ HTML_DOCS=( doc/watchexec.1.html ) QA_FLAGS_IGNORED="usr/bin/watchexec" +src_prepare() { + default_src_prepare + + # Not using `.patch` file since this the file contains the version number. + sed -e '/^⚠ DEBUG BUILD ⚠$/,+1d' -i "${S}"/crates/cli/tests/snapshots/help__help_unix.snap + +} + src_compile() { cargo_src_compile --manifest-path=crates/cli/Cargo.toml }