From 2b3141922a02eb31554a27d4cd8282329953f479 Mon Sep 17 00:00:00 2001 From: Callahan Kovacs Date: Fri, 4 Oct 2024 12:51:39 -0500 Subject: [PATCH] chore: feedback from PR Signed-off-by: Callahan Kovacs --- tests/spread/store/registries/task.yaml | 4 +--- tests/spread/store/validation-sets/task.yaml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/spread/store/registries/task.yaml b/tests/spread/store/registries/task.yaml index 9986b76405..8441a863c2 100644 --- a/tests/spread/store/registries/task.yaml +++ b/tests/spread/store/registries/task.yaml @@ -18,9 +18,7 @@ prepare: | chmod 700 "$HOME/.snap/gnupg" # import a registered key - echo "$SNAPCRAFT_ASSERTION_KEY" | base64 --decode > store-key.txt - gpg --homedir "$HOME/.snap/gnupg" --import store-key.txt - rm -f store-key.txt + gpg --homedir "$HOME/.snap/gnupg" --import <(echo "$SNAPCRAFT_ASSERTION_KEY" | base64 --decode) snap install yq # registries only available in edge diff --git a/tests/spread/store/validation-sets/task.yaml b/tests/spread/store/validation-sets/task.yaml index 277ee9d8e1..599f01aad6 100644 --- a/tests/spread/store/validation-sets/task.yaml +++ b/tests/spread/store/validation-sets/task.yaml @@ -18,9 +18,7 @@ prepare: | chmod 700 "$HOME/.snap/gnupg" # import a registered key - echo "$SNAPCRAFT_ASSERTION_KEY" | base64 --decode > store-key.txt - gpg --homedir "$HOME/.snap/gnupg" --import store-key.txt - rm -f store-key.txt + gpg --homedir "$HOME/.snap/gnupg" --import <(echo "$SNAPCRAFT_ASSERTION_KEY" | base64 --decode) snap install yq