From 06f6eeee3a7aaea881d7b399454762f65c8cec87 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Oct 2020 08:29:32 +0200 Subject: Added Linux exit status and output conversion to macos --- src/suites/preprocess.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/suites/preprocess.py') diff --git a/src/suites/preprocess.py b/src/suites/preprocess.py index fde8cc5..506cb32 100644 --- a/src/suites/preprocess.py +++ b/src/suites/preprocess.py @@ -6,7 +6,7 @@ # By: juligonz +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/07/15 18:25:00 by charles #+# #+# # -# Updated: 2020/10/06 16:31:11 by cacharle ### ########.fr # +# Updated: 2020/10/07 08:27:57 by charles ### ########.fr # # # # **************************************************************************** # @@ -55,18 +55,18 @@ def suite_quote(test): test("echo '\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"'") test('echo "\'"') test('echo "\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'\'"') - test("echo '", hook=hooks.error_line0) - test('echo "', hook=hooks.error_line0) - test("echo '''", hook=hooks.error_line0) - test('echo """', hook=hooks.error_line0) - test("echo '''''''''''''''''''''''''''''''''''''''''''", hook=hooks.error_line0) - test('echo """""""""""""""""""""""""""""""""""""""""""', hook=hooks.error_line0) + test("echo '", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo "', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test("echo '''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo """', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test("echo '''''''''''''''''''''''''''''''''''''''''''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) + test('echo """""""""""""""""""""""""""""""""""""""""""', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test("echo 'AH\\'") - test('echo "AH\\"', hook=hooks.error_line0) + test('echo "AH\\"', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test('echo "AH\\""') - test("echo '\\''", hook=hooks.error_line0) + test("echo '\\''", hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) test('echo "\\""') - test('echo "\\\\""', hook=hooks.error_line0) + test('echo "\\\\""', hook=hooks.error_line0, hook_status=hooks.platform_status(2, 1)) @suite() @@ -217,7 +217,7 @@ def suite_escape(test): test(r"/bin/echo ' \$? '") test(r"/bin/echo ' \\ '") test(r"/bin/echo ' \\\ '") - test("echo \\") # noting on linux + test("echo \\", hook=hooks.delete_escape) test("echo \"\\\"\"'bonjour'") -- cgit