]> git.ipfire.org Git - pakfire.git/commitdiff
tests: execute: Add test with multiple newlines in one read
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 16 Jan 2021 13:31:38 +0000 (13:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 16 Jan 2021 13:31:38 +0000 (13:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/python/execute.py

index 6d58644354b8689573a4bdb24c992084c1a07462..f8719411ca1703977139b24111c96f8ff465c9c6 100755 (executable)
@@ -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"])