镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
extract mirror size from rsync provider automatically
这个提交包含在:
@@ -73,6 +73,7 @@ func TestRsyncProvider(t *testing.T) {
|
||||
echo "syncing to $(pwd)"
|
||||
echo $RSYNC_PASSWORD $@
|
||||
sleep 1
|
||||
echo "Total file size: 1.33T bytes"
|
||||
echo "Done"
|
||||
exit 0
|
||||
`
|
||||
@@ -83,6 +84,7 @@ exit 0
|
||||
expectedOutput := fmt.Sprintf(
|
||||
"syncing to %s\n"+
|
||||
"%s\n"+
|
||||
"Total file size: 1.33T bytes\n"+
|
||||
"Done\n",
|
||||
targetDir,
|
||||
fmt.Sprintf(
|
||||
@@ -99,6 +101,7 @@ exit 0
|
||||
So(err, ShouldBeNil)
|
||||
So(string(loggedContent), ShouldEqual, expectedOutput)
|
||||
// fmt.Println(string(loggedContent))
|
||||
So(provider.DataSize(), ShouldEqual, "1.33T")
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
在新工单中引用
屏蔽一个用户