-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks validation tests cannot pass #781
Comments
PR with proposed fix: #782 |
|
Running the
validation/hooks/hooks.t
tests should pass, but they always fail.For example, using
runc
:Seems to be two issues here:
RuntimeLifecycleValidate
) before the output file is read for comparison:runtime-tools/validation/hooks/hooks.go
Lines 77 to 78 in f7e3563
outputData
is always empty.os.ReadFile
because it's ignored.outputData
was populated per the specified hooks, the comparison of its content will always fail:runtime-tools/validation/hooks/hooks.go
Line 79 in f7e3563
pre-start1 called\npre-start2 called\npost-start1 called\npost-start2 called\npost-stop1 called\npost-stop2 called\n
pre-start1 called\npre-start2 called\npost-start1\npost-start2\npost-stop1\npost-stop2\n
called
postfix forpost-startx
andpost-stopx
hooks.The text was updated successfully, but these errors were encountered: