Skip to content

Commit ec63f65

Browse files
committed
"no database connection" --execute-command
MSP-11671 Call `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) run time of `/usr/bin/time rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:134 cucumber:boot` from 195.38 seconds to 49.44 seconds (-74.70%).
1 parent 22c56f5 commit ec63f65

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
@@ -140,10 +140,7 @@ Feature: `msfconsole` `database.yml`
140140
And a mocked home directory
141141
And I cd to "../.."
142142
And the project "database.yml" does not exist
143-
When I run `msfconsole --environment test` interactively
144-
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
145-
And I type "db_status"
146-
And I type "exit"
143+
When I run `msfconsole --environment test --execute-command db_status --execute-command exit`
147144
Then the output should not contain "command_line_metasploit_framework_test"
148145
And the output should not contain "environment_metasploit_framework_test"
149146
And the output should not contain "user_metasploit_framework_test"

0 commit comments

Comments
 (0)