Update test for expandVars(...)

This commit is contained in:
Stanislav Fesenko 2024-02-20 00:25:20 +03:00
parent e0f154d95c
commit 472865ed45

View File

@ -300,8 +300,9 @@ func TestDockerExec(t *testing.T) {
func Test_expandVars(t *testing.T) { func Test_expandVars(t *testing.T) {
const name = "codapi_01" const name = "codapi_01"
commands := map[string]string{ commands := map[string]string{
"python main.py": "python main.py", "python main.py": "python main.py",
"sh create.sh :name": "sh create.sh " + name, "sh create.sh :name": "sh create.sh " + name,
"sh copy.sh :name new-:name": "sh copy.sh " + name + " new-" + name,
} }
for cmd, want := range commands { for cmd, want := range commands {
src := strings.Fields(cmd) src := strings.Fields(cmd)