From a22b218ab29dcae389a745c0bf7b877c2cf39f85 Mon Sep 17 00:00:00 2001 From: Callahan Kovacs Date: Fri, 27 Sep 2024 09:26:57 -0500 Subject: [PATCH] tests: fix validation sets spread test Signed-off-by: Callahan Kovacs --- tests/spread/store/validation-sets/editor.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/spread/store/validation-sets/editor.sh b/tests/spread/store/validation-sets/editor.sh index a38c96be47..eceab47d09 100755 --- a/tests/spread/store/validation-sets/editor.sh +++ b/tests/spread/store/validation-sets/editor.sh @@ -2,11 +2,11 @@ validation_set_file="$1" -# flip-flop between two valid revisions of `test-snapcraft-assertions` in the staging store: 1 and 2 -if grep -q "^ revision:.*1" "$validation_set_file"; then - (( revision=2 )) +# flip-flop between 'hello-world' being optional or required +if grep -q "^ presence:.*optional" "$validation_set_file"; then + presence="required" else - (( revision=1 )) + presence="optional" fi -sed -i "s/ revision:.*/ revision: $revision/g" "$validation_set_file" +sed -i "s/ presence:.*/ presence: $presence/g" "$validation_set_file"