[lxc-devel] [lxc/lxc] e96e50: adapt lxc-attach tests & add test for pty logging

GitHub noreply at github.com
Sun Apr 10 23:00:23 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: e96e50345b0a65c494a30d160610a133ae745995
      https://github.com/lxc/lxc/commit/e96e50345b0a65c494a30d160610a133ae745995
  Author: Christian Brauner <christian.brauner at mailbox.org>
  Date:   2016-04-10 (Sun, 10 Apr 2016)

  Changed paths:
    M src/tests/lxc-test-lxc-attach

  Log Message:
  -----------
  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 at mailbox.org>


  Commit: aa5470485e7b5c18b3bb0f469a32bdfa484b73cd
      https://github.com/lxc/lxc/commit/aa5470485e7b5c18b3bb0f469a32bdfa484b73cd
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2016-04-10 (Sun, 10 Apr 2016)

  Changed paths:
    M src/tests/lxc-test-lxc-attach

  Log Message:
  -----------
  Merge pull request #958 from brauner/2016-04-08/lxc_attach_simplify_and_log

adapt lxc-attach tests


Compare: https://github.com/lxc/lxc/compare/bebc48f196eb...aa5470485e7b


More information about the lxc-devel mailing list