From 9890d60300d4e2d2cd6d4a87de81471f943e975c Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Mon, 20 Jan 2020 12:47:35 +0100 Subject: Fix /shell/run commands splitting This patch splits shell commands either with ';' or '\n'. --- tests/units/test_0003_shellrun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/units/test_0003_shellrun.py b/tests/units/test_0003_shellrun.py index ada1795..79b7305 100644 --- a/tests/units/test_0003_shellrun.py +++ b/tests/units/test_0003_shellrun.py @@ -14,7 +14,7 @@ class TestShellRunMethods(unittest.TestCase): def test_post_with_echo(self): req_json = '{"run":"echo \\"croqueta\\"", "echo":true}' - response_json = '{"out": "\\"croqueta\\"\\n"}' + response_json = '{"out": \"croqueta\\n\"}' req = 'POST /shell/run HTTP/1.0\r\nContent-Length:'+ \ str(len(req_json)) + \ '\r\nContent-Type:application/json\r\n\r\n' + req_json -- cgit v1.2.3-18-g5258