mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
Move integration tests to integration/, expose missing public methods in the core
This commit is contained in:
committed by
Victor Vieux
parent
61abc3f8ac
commit
359a6f49b9
+5
-1
@@ -214,7 +214,7 @@ func (job *Job) GetenvList(key string) []string {
|
||||
return l
|
||||
}
|
||||
|
||||
func (job *Job) SetenvList(key string, value []string) error {
|
||||
func (job *Job) SetenvJson(key string, value interface{}) error {
|
||||
sval, err := json.Marshal(value)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -223,6 +223,10 @@ func (job *Job) SetenvList(key string, value []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (job *Job) SetenvList(key string, value []string) error {
|
||||
return job.SetenvJson(key, value)
|
||||
}
|
||||
|
||||
func (job *Job) Setenv(key, value string) {
|
||||
job.env = append(job.env, key+"="+value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user