Skip to content

Commit 75d0cee

Browse files
committed
minor adjustments - issue #311
1 parent 454f2ae commit 75d0cee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: extra/shutils/regressiontest.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from email.mime.multipart import MIMEMultipart
1616

1717
TIME = time.strftime("%H:%M:%S %d-%m-%Y", time.gmtime())
18+
SQLMAP_HOME = "/opt/sqlmap"
1819

1920
SMTP_SERVER = "127.0.0.1"
2021
SMTP_PORT = 25
@@ -26,7 +27,7 @@
2627
TEST_COUNTS = []
2728
ATTACHMENTS = {}
2829

29-
command_line = "cd ../../ ; rm -f $REGRESSION_FILE ; python sqlmap.py --live-test"
30+
command_line = "cd %s && python sqlmap.py --live-test" % SQLMAP_HOME
3031
proc = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
3132

3233
proc.wait()

0 commit comments

Comments
 (0)