diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-05-30 14:25:01 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-07-15 15:49:07 +0200 |
commit | 00f133458b72239000a39786d9a36ea2df7f2d8e (patch) | |
tree | 1979202a891de1c9ab8a2f8dca1c30992558d9ef /ipatests/test_integration/test_simple_replication.py | |
parent | 353f3c62c3dc95db471a2b23fcd90d6071542362 (diff) | |
download | freeipa-00f133458b72239000a39786d9a36ea2df7f2d8e.tar.gz freeipa-00f133458b72239000a39786d9a36ea2df7f2d8e.tar.xz freeipa-00f133458b72239000a39786d9a36ea2df7f2d8e.zip |
Introduce a class for remote commands
Introduce a class inspired by subprocess.Popen that handles
running a command on a remote machine and handling its output.
To separate stdout & stderr streams of a remote command,
they need to be read in parallel, so that one of them doesn't
stall the runner when its buffer fills up. Accomplish this
by using a thread for each stream.
Part of the work for: https://fedorahosted.org/freeipa/ticket/3621
Diffstat (limited to 'ipatests/test_integration/test_simple_replication.py')
-rw-r--r-- | ipatests/test_integration/test_simple_replication.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_integration/test_simple_replication.py b/ipatests/test_integration/test_simple_replication.py index 80c0c4227..a5d1bb208 100644 --- a/ipatests/test_integration/test_simple_replication.py +++ b/ipatests/test_integration/test_simple_replication.py @@ -36,7 +36,7 @@ class TestSimpleReplication(IntegrationTest): time.sleep(5) result = self.replicas[0].run_command(['ipa', 'user-show', login]) - assert 'User login: %s' % login in result.output + assert 'User login: %s' % login in result.stdout_text def test_user_replication_to_master(self): login = 'testuser2' @@ -48,4 +48,4 @@ class TestSimpleReplication(IntegrationTest): time.sleep(5) result = self.master.run_command(['ipa', 'user-show', login]) - assert 'User login: %s' % login in result.output + assert 'User login: %s' % login in result.stdout_text |