chore: Add short variable

This commit is contained in:
Bo-Yi Wu
2019-05-14 22:15:22 +08:00
parent 3505455bb7
commit f6128860ab
3 changed files with 12 additions and 16 deletions
-2
View File
@@ -244,7 +244,6 @@ func TestSetENV(t *testing.T) {
Username: "drone-scp",
Port: 22,
KeyPath: "./tests/.ssh/id_rsa",
Secrets: []string{"FOO"},
Envs: []string{"foo"},
Debug: true,
Script: []string{"whoami; echo $FOO"},
@@ -271,7 +270,6 @@ func TestSetExistingENV(t *testing.T) {
Username: "drone-scp",
Port: 22,
KeyPath: "./tests/.ssh/id_rsa",
Secrets: []string{"FOO"},
Envs: []string{"foo", "bar", "baz"},
Debug: true,
Script: []string{"export FOO", "export BAR", "export BAZ", "env | grep -q '^FOO=Value for foo$'", "env | grep -q '^BAR=$'", "if env | grep -q BAZ; then false; else true; fi"},