mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 06:32:59 -04:00
app-crypt/rage: add patch to fix tests
Closes: https://bugs.gentoo.org/974522 Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
24
app-crypt/rage/files/rage-0.11.2-keygen-test.patch
Normal file
24
app-crypt/rage/files/rage-0.11.2-keygen-test.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
Fixes tests by making them timezone agnostic
|
||||
Closes: https://bugs.gentoo.org/974522
|
||||
From: https://github.com/str4d/rage/commit/dfb60a5c04df217daaceb1d7b74b2e13be7a621b
|
||||
|
||||
--- a/rage/tests/cmd/rage-keygen/gen-output.out/key.txt
|
||||
+++ b/rage/tests/cmd/rage-keygen/gen-output.out/key.txt
|
||||
@@ -1,3 +1,3 @@
|
||||
-# created: 20[..]-[..]-[..]T[..]:[..]:[..]Z
|
||||
+# created: 20[..]-[..]-[..]T[..]:[..]:[..]
|
||||
# public key: age1[..]
|
||||
-AGE-SECRET-KEY-1[..]
|
||||
\ No newline at end of file
|
||||
+AGE-SECRET-KEY-1[..]
|
||||
--- a/rage/tests/cmd/rage-keygen/gen-stdout.toml
|
||||
+++ b/rage/tests/cmd/rage-keygen/gen-stdout.toml
|
||||
@@ -1,7 +1,7 @@
|
||||
bin.name = "rage-keygen"
|
||||
args = ""
|
||||
stdout = """
|
||||
-# created: 20[..]-[..]-[..]T[..]:[..]:[..]Z
|
||||
+# created: 20[..]-[..]-[..]T[..]:[..]:[..]
|
||||
# public key: age1[..]
|
||||
AGE-SECRET-KEY-1[..]
|
||||
"""
|
||||
@@ -27,6 +27,8 @@ QA_FLAGS_IGNORED="
|
||||
/usr/bin/${PN}-keygen
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-keygen-test.patch" )
|
||||
|
||||
src_install() {
|
||||
cargo_src_install --path rage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user