diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 9f34c3da76..f87e72e583 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -589,12 +589,10 @@ $(GENERATED_FILES): %: %.in $(MAKEFILE_LIST) VERSION .git-commit generate-config: $(CONFIGS) -test: install-hook go-test +test: hook go-test -install-hook: +hook: make -C virtcontainers hook - echo "installing mock hook" - sudo -E make -C virtcontainers install go-test: $(GENERATED_FILES) go clean -testcache diff --git a/src/runtime/pkg/katautils/hook_test.go b/src/runtime/pkg/katautils/hook_test.go index 6109b55499..50452974b6 100644 --- a/src/runtime/pkg/katautils/hook_test.go +++ b/src/runtime/pkg/katautils/hook_test.go @@ -20,7 +20,7 @@ import ( var testKeyHook = "test-key" var testContainerIDHook = "test-container-id" var testControllerIDHook = "test-controller-id" -var testBinHookPath = "/usr/bin/virtcontainers/bin/test/hook" +var testBinHookPath = "../../virtcontainers/hook/mock/hook" var testBundlePath = "/test/bundle" func getMockHookBinPath() string {