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

Skip to content

Commit 454f2ae

Browse files
committed
ready for production - closes #311
1 parent 7ccdfc7 commit 454f2ae

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

extra/shutils/regressiontest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@
2020
SMTP_PORT = 25
2121
SMTP_TIMEOUT = 30
2222
23-
24-
23+
2524
SUBJECT = "Regression test results on %s" % TIME
2625
CONTENT = ""
2726
TEST_COUNTS = []
2827
ATTACHMENTS = {}
2928

30-
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test --run-case 'Invalid'"
29+
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test"
3130
proc = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
31+
3232
proc.wait()
3333
stdout, stderr = proc.communicate()
34+
3435
failed_tests = re.findall("running live test case: (.+?) \((\d+)\/\d+\)[\r]*\n.+test failed (at parsing item \"(.+)\" )?\- scan folder: (\/.+) \- traceback: (.*?)( - SQL injection not detected)?[\r]*\n", stdout, re.M)
3536

3637
for failed_test in failed_tests:

0 commit comments

Comments
 (0)