summaryrefslogtreecommitdiffstats
path: root/tester
diff options
context:
space:
mode:
authorMuhammad Sulthan Mazaya <msulthanmazaya@gmail.com>2023-06-21 11:55:10 +1000
committerChris Johns <chrisj@rtems.org>2023-06-21 14:30:48 +1000
commitbd2d3d5523ea203f9e0122a1def61cd2d35d74ab (patch)
tree463308b574a6cef4eb815a9a026d111a2aab6fbc /tester
parentrtemstoolkil: Fix execute as strings after pipe addition (diff)
downloadrtems-tools-bd2d3d5523ea203f9e0122a1def61cd2d35d74ab.tar.bz2
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.
Diffstat (limited to 'tester')
-rw-r--r--tester/rt/config.py2
1 files changed, 1 insertions, 1 deletions
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':