diff --git a/rushti.py b/rushti.py index cd6a4df..e481736 100644 --- a/rushti.py +++ b/rushti.py @@ -226,7 +226,7 @@ def parse_line_arguments(line: str) -> Dict[str, Any]: elif key_lower == "succeed_on_minor_errors": line_arguments[argument] = value.lower() in TRUE_VALUES else: - # Store the argument-value pair as is + # Directly assign the value without stripping quotes line_arguments[argument] = value return line_arguments @@ -880,7 +880,5 @@ def exit_rushti( exit_rushti( overall_success=success, executions=len(results), - successes=sum(results), - start_time=start, end_time=end, elapsed_time=duration) diff --git a/tests/tests.py b/tests/tests.py index 8b905ee..7de7e68 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -186,6 +186,22 @@ def test_predecessors_and_require_predecessor_success(self): 'require_predecessor_success': True } self.assertEqual(result, expected) + + def test_sql_query_parsing(self): + self.maxDiff = None + line = 'id="1" predecessors="" require_predecessor_success="" instance="tm1srv01" process="}bedrock.server.query" pQuery="SELECT Id,IsDeleted FROM Account WHERE date=\\"20241031092120\\"" pParam2="" pParam3="testing\\"2\\""' + result = parse_line_arguments(line) + expected = { + 'id': '1', + 'predecessors': [], + 'require_predecessor_success': False, + 'instance': 'tm1srv01', + 'process': '}bedrock.server.query', + 'pQuery': 'SELECT Id,IsDeleted FROM Account WHERE date="20241031092120"', + 'pParam2': '', + 'pParam3': 'testing"2"' + } + self.assertEqual(result, expected) class TestSucceedOnMinorErrors(unittest.TestCase):