2014-03-12 09:12:20 -04:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestExportOptsPrepare_BootWait(t *testing.T) {
|
|
|
|
var c *ExportOpts
|
|
|
|
var errs []error
|
|
|
|
|
|
|
|
// Good
|
|
|
|
c = new(ExportOpts)
|
2014-03-14 12:22:44 -04:00
|
|
|
c.ExportOpts = []string{
|
|
|
|
"--options",
|
|
|
|
}
|
2014-03-12 09:12:20 -04:00
|
|
|
errs = c.Prepare(testConfigTemplate(t))
|
|
|
|
if len(errs) > 0 {
|
|
|
|
t.Fatalf("should not have error: %s", errs)
|
|
|
|
}
|
|
|
|
}
|