@@ -62,7 +62,7 @@ func VerifyInstallReturn(t *testing.T, pkg string, input string) {
6262 if matchedInstall || matchedNoaction {
6363 return
6464 }
65- t .Fatalf ("Installation of '%s' returned unexpected result: %s" , pkg , input )
65+ t .Fatalf ("Installation of %q returned unexpected result: %s" , pkg , input )
6666}
6767
6868func TestPvpanicDriverInstallFromTesting (t * testing.T ) {
@@ -73,7 +73,7 @@ func TestPvpanicDriverInstallFromTesting(t *testing.T) {
7373 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
7474 output , err := utils .RunPowershellCmd (command )
7575 if err != nil {
76- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
76+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
7777 }
7878 VerifyInstallReturn (t , driver , output .Stdout )
7979}
@@ -86,7 +86,7 @@ func TestGgaDriverInstallFromTesting(t *testing.T) {
8686 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
8787 output , err := utils .RunPowershellCmd (command )
8888 if err != nil {
89- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
89+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
9090 }
9191 VerifyInstallReturn (t , driver , output .Stdout )
9292}
@@ -99,7 +99,7 @@ func TestBalloonDriverInstallFromTesting(t *testing.T) {
9999 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
100100 output , err := utils .RunPowershellCmd (command )
101101 if err != nil {
102- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
102+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
103103 }
104104 VerifyInstallReturn (t , driver , output .Stdout )
105105}
@@ -112,7 +112,7 @@ func TestGvnicDriverInstallFromTesting(t *testing.T) {
112112 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
113113 output , err := utils .RunPowershellCmd (command )
114114 if err != nil {
115- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
115+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
116116 }
117117 VerifyInstallReturn (t , driver , output .Stdout )
118118}
@@ -125,7 +125,7 @@ func TestNetkvmDriverInstallFromTesting(t *testing.T) {
125125 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
126126 output , err := utils .RunPowershellCmd (command )
127127 if err != nil {
128- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
128+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
129129 }
130130 VerifyInstallReturn (t , driver , output .Stdout )
131131}
@@ -138,7 +138,7 @@ func TestVioscsiDriverInstallFromTesting(t *testing.T) {
138138 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , driver )
139139 output , err := utils .RunPowershellCmd (command )
140140 if err != nil {
141- t .Fatalf ("Error installing '%s' : %v " , driver , output .Stdout )
141+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , driver , output .Stdout , output . Stderr )
142142 }
143143 VerifyInstallReturn (t , driver , output .Stdout )
144144}
@@ -151,7 +151,7 @@ func TestCertgenPackageInstallFromTesting(t *testing.T) {
151151 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
152152 output , err := utils .RunPowershellCmd (command )
153153 if err != nil {
154- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
154+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
155155 }
156156 VerifyInstallReturn (t , pkg , output .Stdout )
157157}
@@ -164,7 +164,7 @@ func TestGoogetPackageInstallFromTesting(t *testing.T) {
164164 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
165165 output , err := utils .RunPowershellCmd (command )
166166 if err != nil {
167- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
167+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
168168 }
169169 VerifyInstallReturn (t , pkg , output .Stdout )
170170}
@@ -177,7 +177,7 @@ func TestGceDiagnosticsPackageInstallFromTesting(t *testing.T) {
177177 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
178178 output , err := utils .RunPowershellCmd (command )
179179 if err != nil {
180- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
180+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
181181 }
182182 VerifyInstallReturn (t , pkg , output .Stdout )
183183}
@@ -190,7 +190,7 @@ func TestGceMetadataScriptsPackageInstallFromTesting(t *testing.T) {
190190 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
191191 output , err := utils .RunPowershellCmd (command )
192192 if err != nil {
193- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
193+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
194194 }
195195 VerifyInstallReturn (t , pkg , output .Stdout )
196196}
@@ -203,7 +203,7 @@ func TestGcePowershellPackageInstallFromTesting(t *testing.T) {
203203 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
204204 output , err := utils .RunPowershellCmd (command )
205205 if err != nil {
206- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
206+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
207207 }
208208 VerifyInstallReturn (t , pkg , output .Stdout )
209209}
@@ -216,7 +216,7 @@ func TestGceSysprepPackageInstallFromTesting(t *testing.T) {
216216 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
217217 output , err := utils .RunPowershellCmd (command )
218218 if err != nil {
219- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
219+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
220220 }
221221 VerifyInstallReturn (t , pkg , output .Stdout )
222222}
@@ -229,7 +229,7 @@ func TestWindowsGuestAgentInstallFromTesting(t *testing.T) {
229229 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
230230 output , err := utils .RunPowershellCmd (command )
231231 if err != nil {
232- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
232+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
233233 }
234234 VerifyInstallReturn (t , pkg , output .Stdout )
235235}
@@ -242,7 +242,7 @@ func TestOSConfigAgentInstallFromTesting(t *testing.T) {
242242 command := fmt .Sprintf ("%s -noconfirm install %s" , googet , pkg )
243243 output , err := utils .RunPowershellCmd (command )
244244 if err != nil {
245- t .Fatalf ("Error installing '%s' : %v " , pkg , output .Stdout )
245+ t .Fatalf ("Error installing %q: stdout: %s, stderr : %s " , pkg , output .Stdout , output . Stderr )
246246 }
247247 VerifyInstallReturn (t , pkg , output .Stdout )
248248}
0 commit comments