GetProjectSrcDir gets the src code root.
()
| 38 | |
| 39 | // GetProjectSrcDir gets the src code root. |
| 40 | func GetProjectSrcDir() string { |
| 41 | _, testFile, _, _ := runtime.Caller(0) |
| 42 | return FJ(filepath.Dir(testFile), "../") |
| 43 | } |
| 44 | |
| 45 | // RunCommand runs a command and capture its output to a log file, |
| 46 | // if toStd is true also output to stdout and stderr. |
no outgoing calls