Skip to content

Commit 7dfdc50

Browse files
committed
"Starting msfconsole with a valid database.yml" --execute-command
MSP-11671 Run `msfconsole` with `--execute-command db_status --execute-command exit` instead of running interactively and typing `db_status` and `exit` to change the average (n=10) running time of `/usr/bin/time rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:150 cucumber:boot` from 196.30 seconds to 57.02 seconds (-70.95%). Raw data: https://docs.google.com/spreadsheets/d/1vCRi_38Go3Wfq670eDCXMTSSXL1blSbk6NQsgpOqfYw/edit?usp=sharing.
1 parent 288d77f commit 7dfdc50

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

features/msfconsole/database_yml.feature

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ Feature: `msfconsole` `database.yml`
148148
And the output should contain "[*] postgresql selected, no connection"
149149

150150
Scenario: Starting `msfconsole` with a valid database.yml
151-
Given I run `msfconsole` interactively
152-
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
153-
When I type "db_status"
154-
And I type "exit"
151+
When I run `msfconsole --execute-command db_status --execute-command exit`
155152
Then the output should contain "[*] postgresql connected to metasploit_framework_test"
156153

0 commit comments

Comments
 (0)