Searched refs:localFile (Results 1 - 2 of 2) sorted by relevance
/developtools/integration_verification/tools/fotff/utils/ |
H A D | ssh.go | 113 func TransFileViaSSH(verb Direct, addr string, user string, passwd string, remoteFile string, localFile string) error { 134 os.RemoveAll(localFile) 135 os.MkdirAll(filepath.Dir(localFile), 0755) 136 if dst, err = os.Create(localFile); err != nil { 142 if src, err = os.Open(localFile); err != nil { 153 logrus.Infof("%sing %s at %s %s %s...", verb, remoteFile, addr, prep, localFile) 157 logrus.Errorf("%s %s at %s %s %s err: %v", verb, remoteFile, addr, prep, localFile, err) 162 logrus.Infof("%s %s at %s %s %s done, size: %d cost: %.2fs speed: %.2fMB/s", verb, remoteFile, addr, prep, localFile, n, cost, float64(n)/cost/1024/1024)
|
/developtools/hdc/src/test/ |
H A D | ut_mod.cpp | 139 string localFile = Base::StringFormat("%s/file.local", UT_TMP_PATH.c_str()); in TestFileCommand() local 143 string cmd = Base::StringFormat("find /usr > %s", localFile.c_str()); in TestFileCommand() 146 if ((sizeLocal = Base::ReadBinFile(localFile.c_str(), reinterpret_cast<void **>(&bufLocal), 0)) < 0) { in TestFileCommand() 276 string localFile = Base::StringFormat("%s/forward.result", UT_TMP_PATH.c_str()); in TestForwardCommand() local 277 if ((sizeResult = Base::ReadBinFile(localFile.c_str(), reinterpret_cast<void **>(buf), sizeof(buf))) < 0) { in TestForwardCommand() 290 string localFile = Base::StringFormat("%s/app.hap", UT_TMP_PATH.c_str()); in TestAppCommand() local 291 string cmd = Base::StringFormat("id --help > %s", localFile.c_str()); // I know it is a invalid hap file in TestAppCommand()
|
Completed in 2 milliseconds