diff options
author | nicolargo <nicolas@nicolargo.com> | 2021-04-25 09:42:23 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2021-04-25 09:42:23 +0200 |
commit | a2c0357898c24518867efd37adfc1e7bbed83b81 (patch) | |
tree | 69cd6ca479cb695ec15512cd8285a9ccd83be5af /unitest.py | |
parent | 29d4662fd274ebcb54d08845daab946533f523ba (diff) |
Manage multiple commands (&&) in the secure popen
Diffstat (limited to 'unitest.py')
-rwxr-xr-x | unitest.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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""" |