Update test for expandVars(...)
This commit is contained in:
parent
e0f154d95c
commit
472865ed45
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user