/developtools/integration_verification/tools/fotff/pkg/gitee_common/ |
D | get_newer_ci.go | 106 if filepath.Base(p) == cur { 109 logrus.Infof("new package found, name: %s", filepath.Base(p)) 119 if _, err := parseTime(filepath.Base(url)); err != nil { 120 logrus.Errorf("can not get package time from %s, skipping", filepath.Base(url)) 121 return "", fmt.Errorf("can not get package time from %s, skipping", filepath.Base(url)) 132 f, err := os.Create(filepath.Join(m.ArchiveDir, filepath.Base(url))) 141 return filepath.Base(url), nil
|
D | get_newer_or_fail.go | 35 dir := filepath.Join(m.Workspace, dirName) 39 logrus.Infof("extracting %s to %s...", filepath.Join(m.ArchiveDir, newFile), dir) 40 if err := ex.Extract(filepath.Join(m.ArchiveDir, newFile), dir); err != nil { 92 if err := os.MkdirAll(filepath.Join(m.Workspace, pkg), 0750); err != nil { 101 err = os.WriteFile(filepath.Join(m.Workspace, pkg, "manifest_tag.xml"), resp, 0640) 106 …if err := compressor.NewTgz().Compress(filepath.Join(m.Workspace, pkg), filepath.Join(m.ArchiveDir…
|
D | common.go | 65 path := filepath.Join(m.Workspace, e.Name()) 89 if err := os.RemoveAll(filepath.Join(path, e.Name())); err != nil { 90 logrus.Errorf("remove %s fail: %v", filepath.Join(path, e.Name()), err) 123 data, err := os.ReadFile(filepath.Join(m.Workspace, pkg, "__last_issue__")) 140 dir := filepath.Join(m.Workspace, dirName) 144 logrus.Infof("extracting %s to %s...", filepath.Join(m.ArchiveDir, newFile), dir) 145 if err := ex.Extract(filepath.Join(m.ArchiveDir, newFile), dir); err != nil { 152 return filepath.Join(m.Workspace, pkg)
|
D | build.go | 57 imgName := filepath.Base(img) 58 if _, err := os.Stat(filepath.Join(m.Workspace, config.Pkg, imgName)); err != nil { 76 …fmt.Sprintf("%s/.repo/manifest.xml", server.WorkSpace), filepath.Join(m.Workspace, config.Pkg, "ma… 100 imgName := filepath.Base(f) 102 …fmt.Sprintf("%s/%s", server.WorkSpace, f), filepath.Join(m.Workspace, config.Pkg, imgName)); err !…
|
D | steps_gitee_test.go | 40 os.RemoveAll(filepath.Join(m.Workspace, e.Name())) 79 …mLast, err := vcs.ParseManifestFile(filepath.Join(m.Workspace, ret[len(ret)-1], "manifest_tag.xml"… 87 expected, err := vcs.ParseManifestFile(filepath.Join(m.Workspace, tt.to, "manifest_tag.xml"))
|
D | steps_ci.go | 135 if err := os.MkdirAll(filepath.Join(m.Workspace, tag.Id), 0750); err != nil { 144 …if err := os.WriteFile(filepath.Join(m.Workspace, tag.Id, "__last_issue__"), []byte(fmt.Sprintf("%… 151 err = os.WriteFile(filepath.Join(m.Workspace, tag.Id, "manifest_tag.xml"), resp, 0640)
|
D | steps_gitee.go | 71 baseManifest, err := vcs.ParseManifestFile(filepath.Join(m.Workspace, from, "manifest_tag.xml")) 86 m1, err := vcs.ParseManifestFile(filepath.Join(m.Workspace, from, "manifest_tag.xml")) 90 m2, err := vcs.ParseManifestFile(filepath.Join(m.Workspace, to, "manifest_tag.xml")) 258 if filepath.Ext(f.Filename) != ".xml" { 356 if err := os.MkdirAll(filepath.Join(m.Workspace, md5sum), 0750); err != nil { 359 …if err := os.WriteFile(filepath.Join(m.Workspace, md5sum, "__last_issue__"), []byte(fmt.Sprintf("%… 362 err = newManifest.WriteFile(filepath.Join(m.Workspace, md5sum, "manifest_tag.xml"))
|
/developtools/integration_verification/tools/fotff/pkg/dayu200/ |
D | flash.go | 65 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, p… 71 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, p… 80 …if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-p", filepath.Join(m.Worksp… 88 …, m.FlashTool, "-s", locationID, "DI", "-uboot", filepath.Join(m.Workspace, pkg, "uboot.img"), fil… 97 if _, err := os.Stat(filepath.Join(m.Workspace, pkg, part+".img")); err != nil { 104 …, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Workspace, pkg, part+".img"), fil… 110 …, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Workspace, pkg, part+".img"), fil…
|
/developtools/integration_verification/tools/fotff/utils/ |
D | runtime.go | 38 runtimeCache.LoadFile(filepath.Join(runtimeDir, "fotff.cache")) 47 return runtimeCache.SaveFile(filepath.Join(runtimeDir, "fotff.cache")) 51 return os.WriteFile(filepath.Join(runtimeDir, name), data, 0640) 55 return os.ReadFile(filepath.Join(runtimeDir, name))
|
D | log.go | 45 _, filename := filepath.Split(f.File) 64 file := filepath.Join("logs", pkg+".log") 82 stdout := filepath.Join("logs", fmt.Sprintf("%s_stdout.log", pkg))
|
D | ssh.go | 135 os.MkdirAll(filepath.Dir(localFile), 0755) 147 client.MkdirAll(filepath.Dir(remoteFile))
|
/developtools/ace_js2bundle/ace-loader/src/ |
D | read-json-plugin.js | 21 resolver.fileSystem.readJson = (filepath, callback) => { argument 22 resolver.fileSystem.readFile(filepath, (error, content) => { 31 if (/\.json5$/.test(filepath)) {
|
/developtools/integration_verification/tools/fotff/tester/smoke/ |
D | smoke.go | 63 if err := os.MkdirAll(filepath.Join(t.SavePath, reportDir), 0755); err != nil { 66 …Py, "--config", t.Config, "--answer_path", t.AnswerPath, "--save_path", filepath.Join(t.SavePath, … 82 if err := os.MkdirAll(filepath.Join(t.SavePath, reportDir), 0755); err != nil { 85 …Py, "--config", t.Config, "--answer_path", t.AnswerPath, "--save_path", filepath.Join(t.SavePath, … 109 if err := os.MkdirAll(filepath.Join(t.SavePath, reportDir), 0755); err != nil { 112 …Py, "--config", t.Config, "--answer_path", t.AnswerPath, "--save_path", filepath.Join(t.SavePath, … 127 data, err := os.ReadFile(filepath.Join(t.SavePath, reportDir, "result.json"))
|
/developtools/syscap_codec/tools/ |
D | syscap_check.py | 70 def read_value_from_json(filepath: str, 75 if os.path.exists(filepath) is False: 76 print('error: file "{}" not exist.'.format(filepath)) 78 if not os.path.isfile(filepath): 81 with open(filepath, 'r', encoding='utf-8') as f: 92 result_dict[filepath] = data 95 def collect_syscap_from_codec(filepath: str, pattern: str = r'{"(.*)"') -> tuple: 105 with open(filepath, "r") as f: 108 array_syscap_dict[filepath] = list() 110 array_syscap_dict.get(filepath).append(v)
|
/developtools/profiler/host/smartperf/ide/server/ |
D | main.go | 131 …mux.Handle("/upload/", http.StripPrefix("/upload/", http.FileServer(http.Dir(filepath.FromSlash(ex… 276 MkDir(filepath.FromSlash(fmt.Sprintf("./upload/"))) 294 slash := filepath.FromSlash(fmt.Sprintf("./upload/")) 295 filepath.WalkDir(slash, func(path string, d fs.DirEntry, err error) error { 347 …pth := filepath.FromSlash(fmt.Sprintf("/upload/%s%s", time.Now().Format("20060102150405000"), getS… 457 tmpDir, _ := filepath.EvalSymlinks(os.TempDir()) 477 res, _ := filepath.EvalSymlinks(filepath.Dir(pth))
|
/developtools/smartperf_host/ide/server/ |
D | main.go | 131 …mux.Handle("/upload/", http.StripPrefix("/upload/", http.FileServer(http.Dir(filepath.FromSlash(ex… 276 MkDir(filepath.FromSlash(fmt.Sprintf("./upload/"))) 294 slash := filepath.FromSlash(fmt.Sprintf("./upload/")) 295 filepath.WalkDir(slash, func(path string, d fs.DirEntry, err error) error { 347 …pth := filepath.FromSlash(fmt.Sprintf("/upload/%s%s", time.Now().Format("20060102150405000"), getS… 457 tmpDir, _ := filepath.EvalSymlinks(os.TempDir()) 477 res, _ := filepath.EvalSymlinks(filepath.Dir(pth))
|
/developtools/ace_js2bundle/ace-loader/test/lite/ |
D | test.js | 37 const filepath = path.join(__dirname, "expected", `${componentName}.js`); 38 const expectedContent = fs.readFileSync(filepath, "utf-8");
|
/developtools/ace_js2bundle/ace-loader/test/rich/ |
D | test.js | 34 const filepath = path.join(__dirname, 'expected', `${componentName}.js`); 35 const expectedContent = fs.readFileSync(filepath, 'utf-8').substring(607);
|
/developtools/syscap_codec/ |
D | README_ZH.md | 73 syscap_tool -R/P -e/d -i filepath [-o outpath] 83 -i filepath, --input filepath : input file
|
D | README.md | 68 ./syscap_tool -R/P -e/d -i filepath [-o outpath] 80 -i filepath, --input filepath : input file
|
/developtools/hiperf/src/ |
D | report_json_file.cpp | 179 int ReportJsonFile::GetLibID(std::string_view filepath) in GetLibID() argument 181 auto it = find(libList_.begin(), libList_.end(), filepath); in GetLibID() 185 HLOGE("'%s' not found in lib list", filepath.data()); in GetLibID()
|
/developtools/integration_verification/tools/fotff/ |
D | go.mod | 19 github.com/cyphar/filepath-securejoin v0.2.3 // indirect
|
D | go.sum | 6 github.com/cyphar/filepath-securejoin v0.2.3 h1:YX6ebbZCZP7VkM3scTTokDgBL2TY741X51MTk3ycuNI= 7 github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
|
/developtools/integration_verification/tools/fotff/tester/common/ |
D | common.go | 128 resultFile := filepath.Join(t.ResultPath, t.ResultFile)
|
/developtools/integration_verification/tools/fotff/tester/xdevice/ |
D | xdevice.go | 139 data, err := os.ReadFile(filepath.Join("reports", reportDir, "summary_report.xml"))
|