Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ trap cleanup EXIT
tar -xf rootfs.tar.gz -C ${TESTDIR}
cp runtimetest ${TESTDIR}

ocitools generate --output "${TESTDIR}/config.json" "${TEST_ARGS[@]}" --rootfs '.'
ocitools generate --tty --output "${TESTDIR}/config.json" "${TEST_ARGS[@]}" --rootfs '.'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If docker-runc failed without --tty. I think that's docker-runc's problem. The spec says /dev/console is the default device for Linux which must be supplied by runtime.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--tty is unnecessary , add it we can see the output info,wouldn't it be better?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 08/05/2016 04:27 PM, keloyang wrote:

--tty is unnecessary , add it we can see the output info,wouldn't it be better?

Sorry, I'm not sure what you wanted to express. more detailed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug info, such as DEBU[0000] validating ...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 08/05/2016 05:30 PM, keloyang wrote:

debug info, such as DEBU[0000] validating ...
That is not --tty's function.
If you want info like that, you just need to execute test_runtime.sh with -l debug.
--tty is not necessary.


TESTCMD="${RUNTIME} start $(uuidgen)"
TESTCMD="${RUNTIME} run $(uuidgen)"
pushd $TESTDIR > /dev/null
if ! ${TESTCMD}; then
error "Runtime ${RUNTIME} failed validation"
Expand Down