-
Notifications
You must be signed in to change notification settings - Fork 144
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
start validation test panics if process was not set #617
Comments
I have a patch in flight for this with opencontainers/runc#1726. |
From runtime-spec, you should be able to |
@wking Thanks. |
Maybe you can find the maintainer-convincing argument that has so far eluded me ;). |
#578 introduced a new test for StartWithProcUnsetGenError, which is checked by validation/start.go. However, when testing with runc, the test fails because
Create()
returnsexit status 2
. It turns out, that's becausevalidateProcessSpec()
in runc panics with nil-dereference when its inputspec
(type of *Process) is nil.From my understanding, the original idea of the test was probably not to test whether
spec.Process
is nil or not. It should actually test ifprocess
in config.json is valid. So I think we should actually decode a config json file to see if it has a validprocess
entry./cc @liangchenye
The text was updated successfully, but these errors were encountered: