]> git.ipfire.org Git - thirdparty/lxc.git/commit
adapt lxc-attach tests & add test for pty logging 958/head
authorChristian Brauner <christian.brauner@mailbox.org>
Fri, 8 Apr 2016 20:43:51 +0000 (22:43 +0200)
committerChristian Brauner <christian.brauner@mailbox.org>
Sun, 10 Apr 2016 21:06:24 +0000 (23:06 +0200)
commite96e50345b0a65c494a30d160610a133ae745995
treef2974d97d3d52156f4243dba2db9e92e21565167
parentbebc48f196eb1f4f10b9ea55cdb6537f8663620a
adapt lxc-attach tests & add test for pty logging

The current tests for lxc-attach pty allocation and I/O redirection rely on the
standard file descriptors of the test script to refer to a pty. If they do not
the tests are effectively useless with respect to pty allocation. We need a test
environment with the standard file descriptors refering to a pty as well. One
solution is to run this test under the script command.

This commit also adds a test whether pty logging works. This test is only
executed when all standard file descriptors refer to a pty.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/tests/lxc-test-lxc-attach