cmdtest: fix typos found by codespell

This commit is contained in:
Dimitri Papadopoulos 2023-03-24 14:22:48 +01:00 committed by Nick Craig-Wood
parent 9183618082
commit 722a3f32cc

View File

@ -43,7 +43,7 @@ const rcloneTestMain = "RCLONE_TEST_MAIN"
// rcloneExecMain calls rclone with the given environment and arguments. // rcloneExecMain calls rclone with the given environment and arguments.
// The environment variables are in a single string separated by ; // The environment variables are in a single string separated by ;
// The terminal output is retuned as a string. // The terminal output is returned as a string.
func rcloneExecMain(env string, args ...string) (string, error) { func rcloneExecMain(env string, args ...string) (string, error) {
_, found := os.LookupEnv(rcloneTestMain) _, found := os.LookupEnv(rcloneTestMain)
if !found { if !found {
@ -62,7 +62,7 @@ func rcloneExecMain(env string, args ...string) (string, error) {
// rcloneEnv calls rclone with the given environment and arguments. // rcloneEnv calls rclone with the given environment and arguments.
// The environment variables are in a single string separated by ; // The environment variables are in a single string separated by ;
// The test config file is automatically configured in RCLONE_CONFIG. // The test config file is automatically configured in RCLONE_CONFIG.
// The terminal output is retuned as a string. // The terminal output is returned as a string.
func rcloneEnv(env string, args ...string) (string, error) { func rcloneEnv(env string, args ...string) (string, error) {
envConfig := env envConfig := env
if testConfig != "" { if testConfig != "" {
@ -76,7 +76,7 @@ func rcloneEnv(env string, args ...string) (string, error) {
// rclone calls rclone with the given arguments, E.g. "version","--help". // rclone calls rclone with the given arguments, E.g. "version","--help".
// The test config file is automatically configured in RCLONE_CONFIG. // The test config file is automatically configured in RCLONE_CONFIG.
// The terminal output is retuned as a string. // The terminal output is returned as a string.
func rclone(args ...string) (string, error) { func rclone(args ...string) (string, error) {
return rcloneEnv("", args...) return rcloneEnv("", args...)
} }