Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ccdfc7

Browse files
committed
minor enhancements - issue #311
1 parent 50d7386 commit 7ccdfc7

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

extra/shutils/regressiontest.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
TEST_COUNTS = []
2828
ATTACHMENTS = {}
2929

30-
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test --run-case 'Invalid logic'"
30+
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test --run-case 'Invalid'"
3131
proc = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
3232
proc.wait()
3333
stdout, stderr = proc.communicate()
@@ -62,19 +62,21 @@
6262

6363
if parse:
6464
CONTENT += " at parsing: %s:\n\n" % parse
65-
CONTENT += "### LOG FILE:\n\n"
65+
CONTENT += "### Log file:\n\n"
6666
CONTENT += "%s\n" % log
6767
elif not detected:
6868
CONTENT += " - SQL injection not detected\n\n"
6969

7070
if traceback:
71-
CONTENT += "### TRACEBACK:\n\n"
71+
CONTENT += "### Traceback:\n\n"
7272
CONTENT += "%s\n" % str(traceback)
7373

74-
CONTENT += "\n#######################################\n\n"
74+
CONTENT += "#######################################################################\n\n"
7575

7676
if CONTENT:
7777
SUBJECT += " (%s)" % ", ".join("#%d" % count for count in TEST_COUNTS)
78+
CONTENT += "\n\nRegression test finished at %s" % time.strftime("%H:%M:%S %d-%m-%Y", time.gmtime())
79+
7880
msg = MIMEMultipart()
7981
msg["Subject"] = SUBJECT
8082
msg["From"] = FROM

0 commit comments

Comments
 (0)