From: Michael Tremer Date: Sat, 16 Jan 2021 13:31:38 +0000 (+0000) Subject: tests: execute: Add test with multiple newlines in one read X-Git-Tag: 0.9.28~1285^2~850 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0a7dad9977b2f5038bbc94edf290f7b7fc86d6;p=pakfire.git tests: execute: Add test with multiple newlines in one read Signed-off-by: Michael Tremer --- diff --git a/tests/python/execute.py b/tests/python/execute.py index 6d5864435..f8719411c 100755 --- a/tests/python/execute.py +++ b/tests/python/execute.py @@ -67,6 +67,9 @@ class Test(unittest.TestCase): # Run a command that generates lots of lines self.pakfire.execute(["/usr/bin/openssl", "rand", "-base64", "4096"]) + # Multiple newlines in one read + self.pakfire.execute(["/usr/bin/printf", "1\n2\n3\n"]) + # This is an interactive test which cannot be performed automatically #def test_shell(self): # self.pakfire.execute(["/bin/bash", "-i"])