From 6ac012aa3c3dc1f90167bcc8850c946865668a31 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 22 Aug 2021 20:11:15 +0200 Subject: [PATCH] platformtest: work around missing feature detection for test 'ReplicationPropertyReplicationWorks' --- platformtest/tests/replication.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platformtest/tests/replication.go b/platformtest/tests/replication.go index ebb4265..c893e79 100644 --- a/platformtest/tests/replication.go +++ b/platformtest/tests/replication.go @@ -7,6 +7,7 @@ import ( "os" "path" "sort" + "strings" "time" "github.com/kr/pretty" @@ -1057,6 +1058,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)