Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Jun 23, 2024
1 parent 665221b commit e8b75f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_get_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for i in tests/*; do
# Ensure expected key is valid first
aea decrypt -i "tests/$i/encrypted.aea" -o "tmp/decrypted" -key-value "base64:$(cat tests/"$i"/expected.txt)" || abort "Failed to decrypt with expected key"
# Get the key
python3 get_key.py "tests/$i/encrypted.aea" > "tmp/$1/actual.txt" || abort "Failed to get key"
python3 get_key.py "tests/$i/encrypted.aea" > "tmp/$i/actual.txt" || abort "Failed to get key"
# Ensure the key is correct
aea decrypt -i "tests/$i/encrypted.aea" -o "tmp/decrypted" -key-value "base64:$(cat tmp/"$i"/actual.txt)" || abort "Failed to decrypt with actual key"
if diff -q "tmp/$i/actual.txt" "tests/$i/expected.txt"; then
Expand Down

0 comments on commit e8b75f9

Please sign in to comment.