summaryrefslogtreecommitdiffstats
path: root/unitest.py
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2021-04-25 09:42:23 +0200
committernicolargo <nicolas@nicolargo.com>2021-04-25 09:42:23 +0200
commita2c0357898c24518867efd37adfc1e7bbed83b81 (patch)
tree69cd6ca479cb695ec15512cd8285a9ccd83be5af /unitest.py
parent29d4662fd274ebcb54d08845daab946533f523ba (diff)
Manage multiple commands (&&) in the secure popen
Diffstat (limited to 'unitest.py')
-rwxr-xr-xunitest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/unitest.py b/unitest.py
index 0ed66d5b..f23864d1 100755
--- a/unitest.py
+++ b/unitest.py
@@ -381,6 +381,7 @@ class TestGlances(unittest.TestCase):
print('INFO: [TEST_100] Secure functions')
self.assertEqual(secure_popen('echo -n TEST'), 'TEST')
self.assertEqual(secure_popen('echo FOO | grep FOO'), 'FOO\n')
+ self.assertEqual(secure_popen('echo -n TEST1 && echo -n TEST2'), 'TEST1TEST2')
def test_999_the_end(self):
"""Free all the stats"""