From bd2d3d5523ea203f9e0122a1def61cd2d35d74ab Mon Sep 17 00:00:00 2001 From: Muhammad Sulthan Mazaya Date: Wed, 21 Jun 2023 11:55:10 +1000 Subject: rtemstoolkit: Fix shlex.split to use posix mode and add unit test for pipe operation Turns out subprocess.Popen operates on posix mode. Also, there is an issue with previous implementation of pipe command that is fixed by Chris. Now, it can also accepts command in form of a string. The unit test for that is added via this patch. --- tester/rt/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tester') diff --git a/tester/rt/config.py b/tester/rt/config.py index c0c31de..3b12c6c 100644 --- a/tester/rt/config.py +++ b/tester/rt/config.py @@ -327,7 +327,7 @@ class file(config.file): if len(_data): ds = [_data[0]] if len(_data) > 1: - ds += shlex.split(_data[1], posix=False) + ds += shlex.split(_data[1]) ds = self.expand(ds) if _directive == '%console': -- cgit v1.2.3