platformtest: work around missing feature detection for test 'ReplicationPropertyReplicationWorks'

This commit is contained in:
Christian Schwarz 2021-08-22 20:11:15 +02:00
parent 009bd410af
commit 157753d781

View File

@ -7,6 +7,7 @@ import (
"os"
"path"
"sort"
"strings"
"time"
"github.com/kr/pretty"
@ -1054,6 +1055,9 @@ func ReplicationPropertyReplicationWorks(ctx *platformtest.Context) {
rep := fsByName[fs]
require.Len(ctx, rep.Steps, 1)
require.Nil(ctx, rep.PlanError)
if rep.StepError != nil && strings.Contains(rep.StepError.Error(), "invalid option 'x'") {
ctx.SkipNow() // XXX feature detection
}
require.Nil(ctx, rep.StepError)
require.Len(ctx, rep.Steps, 1)
require.Equal(ctx, 1, rep.CurrentStep)