Skip to content

Commit

Permalink
tests: fix validation sets spread test
Browse files Browse the repository at this point in the history
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
  • Loading branch information
mr-cal committed Sep 27, 2024
1 parent 5ea2c39 commit bce5c43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/spread/store/validation-sets/editor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bce5c43

Please sign in to comment.