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 <[email protected]>
  • Loading branch information
mr-cal authored and sergiusens committed Sep 30, 2024
1 parent 040b66c commit a22b218
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 a22b218

Please sign in to comment.