From 58e09e1cd4282607244476ef2eef7834edafe02f Mon Sep 17 00:00:00 2001 From: nielash Date: Tue, 16 Apr 2024 23:42:14 -0400 Subject: [PATCH] bisync: skip test if config string contains a space --- cmd/bisync/bisync_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.go index dbf009aa3..56708e50d 100644 --- a/cmd/bisync/bisync_test.go +++ b/cmd/bisync/bisync_test.go @@ -368,6 +368,10 @@ func (b *bisyncTest) runTestCase(ctx context.Context, t *testing.T, testCase str b.fs1, b.parent1, b.path1, b.canonPath1 = b.makeTempRemote(ctx, b.argRemote1, "path1") b.fs2, b.parent2, b.path2, b.canonPath2 = b.makeTempRemote(ctx, b.argRemote2, "path2") + if strings.Contains(b.replaceHex(b.path1), " ") || strings.Contains(b.replaceHex(b.path2), " ") { + b.t.Skip("skipping as tests can't handle spaces config string") + } + b.sessionName = bilib.SessionName(b.fs1, b.fs2) b.testDir = b.ensureDir(b.dataRoot, "test_"+b.testCase, false) b.initDir = b.ensureDir(b.testDir, "initial", false)