Skip to content

Commit 0394b02

Browse files
authored
make for-all CMD="make impi" (#5735)
1 parent 72603ef commit 0394b02

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pkg/extension/smartagentextension/config_windows_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestBundleDirDefault(t *testing.T) {
4040
err = cm.Unmarshal(&emptyConfig)
4141
require.NoError(t, err)
4242

43+
factory := NewFactory()
4344
ext, err := factory.Create(context.Background(), extension.Settings{}, emptyConfig)
4445
require.NoError(t, err)
4546
require.NotNil(t, ext)

tests/internal/discoverytest/discoverytest.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//go:build !windows
16+
1517
package discoverytest
1618

1719
import (

tests/msi/msi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ func runMsiTest(t *testing.T, test msiTest, msiInstallerPath string) {
166166
// Uninstall the MSI
167167
uninstallCmd := exec.Command("msiexec")
168168
uninstallCmd.SysProcAttr = &syscall.SysProcAttr{CmdLine: "msiexec /x " + msiInstallerPath + " /qn"}
169-
err := uninstallCmd.Run()
169+
errUninstallCmd := uninstallCmd.Run()
170170
t.Logf("Uninstall command: %s", uninstallCmd.SysProcAttr.CmdLine)
171-
require.NoError(t, err, "Failed to uninstall the MSI: %v", err)
171+
require.NoError(t, errUninstallCmd, "Failed to uninstall the MSI: %v", errUninstallCmd)
172172
}()
173173
}
174174

0 commit comments

Comments
 (0)