[PATCH 2/2] sb/execute.py: Add test for _readthread() code point splitting
Anders Montonen
Anders.Montonen at iki.fi
Wed May 6 23:37:33 UTC 2020
Signed-off-by: Anders Montonen <Anders.Montonen at iki.fi>
---
source-builder/sb/execute.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/source-builder/sb/execute.py b/source-builder/sb/execute.py
index 092267b..fc379ae 100755
--- a/source-builder/sb/execute.py
+++ b/source-builder/sb/execute.py
@@ -565,6 +565,7 @@ if __name__ == "__main__":
cmd_shell_test = 'if "%OS%" == "Windows_NT" (echo It is WinNT) else echo Is is not WinNT'
sh_shell_test = 'x="me"; if [ $x = "me" ]; then echo "It was me"; else "It was him"; fi'
+ long_output_test = 'echo ' + 4095*'a' + u'\U00010000'
commands = {}
commands['windows'] = {}
@@ -575,7 +576,7 @@ if __name__ == "__main__":
commands['windows']['csubsts'] = [('netstat %0', ['-a']),
('netstat %0 %1', ['-a', '-n'])]
commands['windows']['pipe'] = ('ftp', None, 'help\nquit')
- commands['unix']['shell'] = ['pwd', 'ls -las', './xyz', sh_shell_test]
+ commands['unix']['shell'] = ['pwd', 'ls -las', './xyz', sh_shell_test, long_output_test]
commands['unix']['spawn'] = ['ls', 'execute.pyc', ['ls', '-i']]
commands['unix']['cmd'] = [('date'), ('date', '-R'), ('date', ['-u', '+%d %D']),
('date', '-u "+%d %D %S"')]
--
2.25.1
More information about the devel
mailing list