protondrive: skip the live integration test during a golden capture
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
be00536078
commit
f8e398fce1
1 file changed
+8
@@ -1,6 +1,7 @@
|
|||||||
package protondrive_test
|
package protondrive_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"flag"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/rclone/rclone/backend/protondrive"
|
"github.com/rclone/rclone/backend/protondrive"
|
||||||
@@ -9,6 +10,13 @@ import (
|
|||||||
|
|
||||||
// TestIntegration runs integration tests against the remote
|
// TestIntegration runs integration tests against the remote
|
||||||
func TestIntegration(t *testing.T) {
|
func TestIntegration(t *testing.T) {
|
||||||
|
// A golden capture runs with the real config, where this test would
|
||||||
|
// write to and delete from the live remote if -run let it through.
|
||||||
|
for _, name := range []string{"capture", "capture-remote"} {
|
||||||
|
if f := flag.Lookup(name); f != nil && f.Value.String() != "" {
|
||||||
|
t.Skipf("-%s is set: not running integration tests during a golden capture", name)
|
||||||
|
}
|
||||||
|
}
|
||||||
fstests.Run(t, &fstests.Opt{
|
fstests.Run(t, &fstests.Opt{
|
||||||
RemoteName: "TestProtonDrive:",
|
RemoteName: "TestProtonDrive:",
|
||||||
NilObject: (*protondrive.Object)(nil),
|
NilObject: (*protondrive.Object)(nil),
|
||||||
|
|||||||
Reference in new issue
Block a user