Skip to content

Commit

Permalink
Fix gpg error unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
stcarrez committed Feb 8, 2020
1 parent 60ba8f1 commit 8fc1ff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regtests/keystore-gpg_tests.adb
Original file line number Diff line number Diff line change
Expand Up @@ -343,18 +343,18 @@ package body Keystore.GPG_Tests is
-- ------------------------------
procedure Test_GPG_Error (T : in out Test) is
Config : constant String := Util.Tests.Get_Test_Path ("regtests/files/gnupg/");
Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL3_PATH);
Path : constant String := Util.Tests.Get_Test_Path (TEST_TOOL_PATH);
Result : Ada.Strings.Unbounded.Unbounded_String;
begin
T.Execute ("bin/akt --config " & Config & "bad-list-user1.properties store "
T.Execute ("bin/akt --config " & Config & "bad-list-user1-akt.properties store "
& Path & " -- LICENSE.txt",
"Makefile.conf", "",
Result, 1);

Util.Tests.Assert_Matches (T, "^Invalid password to unlock the keystore file",
Result, "password-set command failed");

T.Execute ("bin/akt --config " & Config & "bad-decrypt-user1.properties store "
T.Execute ("bin/akt --config " & Config & "bad-decrypt-user1-akt.properties store "
& Path & " -- LICENSE.txt",
"Makefile.conf", "",
Result, 1);
Expand Down

0 comments on commit 8fc1ff2

Please sign in to comment.