-
Notifications
You must be signed in to change notification settings - Fork 160
runtimetest: Fix check for device nodes #135
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
Conversation
test_runtime.sh
Outdated
|
|
||
| pushd $TESTDIR > /dev/null | ||
| ocitools generate --output config.json "${TEST_ARGS[@]}" --rootfs '.' | ||
| ocitools generate --tty --output config.json "${TEST_ARGS[@]}" --rootfs '.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drive by?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/dev/console is only setup if we set terminal to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Mon, Jul 18, 2016 at 03:41:25PM -0700, Mrunal Patel wrote:
-ocitools generate --output config.json "${TEST_ARGS[@]}" --rootfs '.'
+ocitools generate --tty --output config.json "${TEST_ARGS[@]}" --rootfs '.'/dev/console is only setup if we set terminal to true.
Can we stop adding “runC isn't compliant out of the box” workarounds
now that we're post 1.0.0-rc1? If there's really a reason to not
setup /dev/console when terminal is false, can we PR the spec with
that information?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wking I have created a runtime-spec PR opencontainers/runtime-spec#518
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Mon, Jul 18, 2016 at 03:54:39PM -0700, Mrunal Patel wrote:
@@ -78,7 +78,7 @@ tar -xf rootfs.tar.gz -C ${TESTDIR}
cp runtimetest ${TESTDIR}pushd $TESTDIR > /dev/null
-ocitools generate --output config.json "${TEST_ARGS[@]}" --rootfs '.'
+ocitools generate --tty --output config.json "${TEST_ARGS[@]}" --rootfs '.'@wking I have created a runtime-spec PR opencontainers/runtime-spec#518
+1. In the meantime, can we land this PR without this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have taken out that change for now pending upstream PR.
|
7fd96c1's ‘& os.ModeDevice’ addition looks good to me, but I'm not
sure what the --tty addition is for.
|
Signed-off-by: Mrunal Patel <[email protected]>
7fd96c1 to
6f9de0a
Compare
|
6f9de0a looks good to me. The --tty bit should be easy to add back in if we still need it after |
Signed-off-by: Mrunal Patel [email protected]