rcloneEnv calls rclone with the given environment and arguments. The environment variables are in a single string separated by ; The test config file is automatically configured in RCLONE_CONFIG. The terminal output is returned as a string.
(env string, args ...string)
| 64 | // The test config file is automatically configured in RCLONE_CONFIG. |
| 65 | // The terminal output is returned as a string. |
| 66 | func rcloneEnv(env string, args ...string) (string, error) { |
| 67 | envConfig := env |
| 68 | if testConfig != "" { |
| 69 | if envConfig != "" { |
| 70 | envConfig += ";" |
| 71 | } |
| 72 | envConfig += "RCLONE_CONFIG=" + testConfig |
| 73 | } |
| 74 | return rcloneExecMain(envConfig, args...) |
| 75 | } |
| 76 | |
| 77 | // rclone calls rclone with the given arguments, E.g. "version","--help". |
| 78 | // The test config file is automatically configured in RCLONE_CONFIG. |
no test coverage detected
searching dependent graphs…