@@ -346,8 +346,8 @@ func Test_targetFsFullPaths(t *testing.T) {
346346 EntryPoint : "bin/tidb-server" ,
347347 },
348348 want : []string {
349- "pingcap/tidb/master/abc123def/bin/tidb-server" ,
350- "pingcap/tidb/abc123def/bin/tidb-server" ,
349+ "download/builds/ pingcap/tidb/master/abc123def/bin/tidb-server" ,
350+ "download/builds/ pingcap/tidb/abc123def/bin/tidb-server" ,
351351 },
352352 },
353353 {
@@ -358,8 +358,8 @@ func Test_targetFsFullPaths(t *testing.T) {
358358 EntryPoint : "pd-server" ,
359359 },
360360 want : []string {
361- "pingcap/pd/release-5.0/abc/pd-server" ,
362- "pingcap/pd/abc/pd-server" ,
361+ "download/builds/ pingcap/pd/release-5.0/abc/pd-server" ,
362+ "download/builds/ pingcap/pd/abc/pd-server" ,
363363 },
364364 },
365365 {
@@ -370,8 +370,19 @@ func Test_targetFsFullPaths(t *testing.T) {
370370 EntryPoint : "opt/tiflash/bin/tiflash-server" ,
371371 },
372372 want : []string {
373- "pingcap/tiflash/nightly/xyz789/opt/tiflash/bin/tiflash-server" ,
374- "pingcap/tiflash/xyz789/opt/tiflash/bin/tiflash-server" ,
373+ "download/builds/pingcap/tiflash/nightly/xyz789/opt/tiflash/bin/tiflash-server" ,
374+ "download/builds/pingcap/tiflash/xyz789/opt/tiflash/bin/tiflash-server" ,
375+ },
376+ },
377+ {
378+ name : "tag" ,
379+ p : & PublishInfo {
380+ Name : "tiflash" ,
381+ Version : "v7.1.1#abcdef" ,
382+ EntryPoint : "opt/tiflash/bin/tiflash-server" ,
383+ },
384+ want : []string {
385+ "download/builds/pingcap/tiflash/v7.1.1/abcdef/opt/tiflash/bin/tiflash-server" ,
375386 },
376387 },
377388 }
0 commit comments