diff --git a/lib/core/testing.py b/lib/core/testing.py index ecaaec7f5..ff4ed5258 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -168,7 +168,7 @@ def liveTest(): result = runCase(switches, parse) test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING) - test_case_fd.write(name) + test_case_fd.write("%s\n" % name) if result: logger.info("test passed") @@ -186,7 +186,7 @@ def liveTest(): errMsg += " - SQL injection not detected" logger.error(errMsg) - test_case_fd.write("\n%s" % errMsg) + test_case_fd.write("%s\n" % errMsg) if failedParseOn: console_output_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "console_output"), "wb", UNICODE_ENCODING)