Move integration tests to integration/, expose missing public methods in the core

This commit is contained in:
Solomon Hykes
2013-11-14 10:50:00 -08:00
committed by Victor Vieux
parent 61abc3f8ac
commit 359a6f49b9
21 changed files with 797 additions and 6 deletions
+5 -1
View File
@@ -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)
}