diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-05-13 22:22:51 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2020-05-13 22:22:51 +0200 |
commit | 913dcddb6852e53e64cd6f6e7f998d6b6f57841e (patch) | |
tree | 8c95a345061470afccda96cd2778b8312039930e /pkgs | |
parent | 068beb2c07788ea5fd8a47d0ef9d284b47df7dfc (diff) | |
download | nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar.gz nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar.bz2 nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar.lz nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar.xz nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.tar.zst nixlib-913dcddb6852e53e64cd6f6e7f998d6b6f57841e.zip |
ripasso-cursive: fix tests
Needed since we store artifacts in `target/<arch>/<profile>`.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/security/ripasso/cursive.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/security/ripasso/fix-tests.patch | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/security/ripasso/cursive.nix b/pkgs/tools/security/ripasso/cursive.nix index c8a55d3f397f..29229bff0028 100644 --- a/pkgs/tools/security/ripasso/cursive.nix +++ b/pkgs/tools/security/ripasso/cursive.nix @@ -12,6 +12,8 @@ buildRustPackage rec { sha256 = "164da20j727p8l7hh37j2r8pai9sj402nhswvg0nrlgj53nr6083"; }; + patches = [ ./fix-tests.patch ]; + cargoSha256 = "1wpn67v0xmxhn1dgzhh1pwz1yc3cizmfxhpb7qv9b27ynx4486ji"; cargoBuildFlags = [ "-p ripasso-cursive -p ripasso-man" ]; diff --git a/pkgs/tools/security/ripasso/fix-tests.patch b/pkgs/tools/security/ripasso/fix-tests.patch new file mode 100644 index 000000000000..433ff933b1f7 --- /dev/null +++ b/pkgs/tools/security/ripasso/fix-tests.patch @@ -0,0 +1,35 @@ +diff --git a/src/pass/test.rs b/src/pass/test.rs +index c980a2f..2e6c8cc 100644 +--- a/src/pass/test.rs ++++ b/src/pass/test.rs +@@ -56,6 +56,7 @@ fn populate_password_list_small_repo() { + base_path.pop(); + base_path.pop(); + base_path.pop(); ++ base_path.pop(); + base_path.push("testres"); + + let mut password_dir: PathBuf = base_path.clone(); +@@ -84,6 +85,7 @@ fn populate_password_list_repo_with_deleted_files() { + base_path.pop(); + base_path.pop(); + base_path.pop(); ++ base_path.pop(); + base_path.push("testres"); + + let mut password_dir: PathBuf = base_path.clone(); +@@ -112,6 +114,7 @@ fn populate_password_list_directory_without_git() { + base_path.pop(); + base_path.pop(); + base_path.pop(); ++ base_path.pop(); + base_path.push("testres"); + + let mut password_dir: PathBuf = base_path.clone(); +@@ -149,4 +152,4 @@ fn parse_signing_keys_empty() { + let result = PasswordStore::parse_signing_keys(&None).unwrap(); + + assert_eq!(result.len(), 0); +-} +\ No newline at end of file ++} |