summaryrefslogtreecommitdiffstats
path: root/xlate-test.py
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-02-03 18:48:33 +0100
committerPhil Sutter <phil@nwl.cc>2023-02-17 18:18:48 +0100
commit914350a4586d2817ca7c4919c53142562f27bdaf (patch)
tree9fa97e1ea7ac2c0c84ea3345b705c2045cf33bcd /xlate-test.py
parente69c2b467d7567027db14d48570fe277495ed52f (diff)
tests: xlate: Properly split input in replay mode
Source command may contain quotes, using shlex.split() does the right thing there. Fixes: 7705b2daa3bdc ("tests: xlate: Use --check to verify replay") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'xlate-test.py')
-rwxr-xr-xxlate-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlate-test.py b/xlate-test.py
index 1b544600..09e3b67a 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -64,7 +64,7 @@ def test_one_replay(name, sourceline, expected, result):
if sourceline.find(';') >= 0:
sourceline, searchline = sourceline.split(';')
- srcwords = sourceline.split()
+ srcwords = shlex.split(sourceline)
srccmd = srcwords[0]
ipt = srccmd.split('-')[0]