mirror of
https://github.com/appleboy/drone-ssh.git
synced 2026-06-04 10:15:07 +08:00
chore: Add short variable
This commit is contained in:
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user