This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,37 +62,37 @@ func TestMain(m *testing.M) {
62
62
}
63
63
configDir , err := ioutil .TempDir ("" , "config" )
64
64
if err != nil {
65
- panic (err . Error () )
65
+ panic (err )
66
66
}
67
67
defer os .RemoveAll (configDir )
68
68
69
69
err = os .Setenv ("DOCKER_CONFIG" , configDir )
70
70
if err != nil {
71
- panic (err . Error () )
71
+ panic (err )
72
72
}
73
73
dockerCli = dockerCliCommand {path : dockerCliPath , config : configDir }
74
74
75
75
config := dockerConfigFile.ConfigFile {CLIPluginsExtraDirs : []string {configDir }}
76
76
configFile , err := os .Create (filepath .Join (configDir , "config.json" ))
77
77
if err != nil {
78
- panic (err . Error () )
78
+ panic (err )
79
79
}
80
80
err = json .NewEncoder (configFile ).Encode (config )
81
81
if err != nil {
82
- panic (err . Error () )
82
+ panic (err )
83
83
}
84
84
dockerAppExecName := "docker-app"
85
85
if runtime .GOOS == "windows" {
86
86
dockerAppExecName += ".exe"
87
87
}
88
88
if err := os .Symlink (dockerApp , filepath .Join (configDir , dockerAppExecName )); err != nil {
89
- panic (err . Error () )
89
+ panic (err )
90
90
}
91
91
92
92
cmd := exec .Command (dockerApp , "app" , "version" )
93
93
output , err := cmd .CombinedOutput ()
94
94
if err != nil {
95
- panic (err . Error () )
95
+ panic (err )
96
96
}
97
97
hasExperimental = bytes .Contains (output , []byte ("Experimental: on" ))
98
98
i := strings .Index (string (output ), "Renderers" )
You can’t perform that action at this time.
0 commit comments