@@ -17,8 +17,10 @@ func Test_ConfigInstall(t *testing.T) {
1717 Cmd : "scw object config install type=rclone" ,
1818 Check : core .TestCheckCombine (
1919 func (t * testing.T , ctx * core.CheckFuncCtx ) {
20- _ , err := os .Stat (path .Join (tmpDir , ".config" , "rclone" , "rclone.conf" ))
20+ filePath := path .Join (tmpDir , ".config" , "rclone" , "rclone.conf" )
21+ _ , err := os .Stat (filePath )
2122 if err != nil {
23+ t .Logf ("No file at %s" , filePath )
2224 t .Fail ()
2325 }
2426 },
@@ -34,8 +36,10 @@ func Test_ConfigInstall(t *testing.T) {
3436 Cmd : "scw object config install type=mc" ,
3537 Check : core .TestCheckCombine (
3638 func (t * testing.T , ctx * core.CheckFuncCtx ) {
37- _ , err := os .Stat (path .Join (tmpDir , ".mc" , "config.json" ))
39+ filePath := path .Join (tmpDir , ".mc" , "config.json" )
40+ _ , err := os .Stat (filePath )
3841 if err != nil {
42+ t .Logf ("No file at %s" , filePath )
3943 t .Fail ()
4044 }
4145 },
@@ -51,8 +55,10 @@ func Test_ConfigInstall(t *testing.T) {
5155 Cmd : "scw object config install type=s3cmd" ,
5256 Check : core .TestCheckCombine (
5357 func (t * testing.T , ctx * core.CheckFuncCtx ) {
54- _ , err := os .Stat (path .Join (tmpDir , ".s3cfg" ))
58+ filePath := path .Join (tmpDir , ".s3cfg" )
59+ _ , err := os .Stat (filePath )
5560 if err != nil {
61+ t .Logf ("No file at %s" , filePath )
5662 t .Fail ()
5763 }
5864 },
0 commit comments