Skip to content

Commit 7a347ac

Browse files
committed
Without --yaml, MSF_DATABASE_CONFIG or ~/.msf4/database.yml, project "database.yml" wins --execute-command
MSP-11671 Run msfconsole with `--execute-command exit` instead of running interactly and typing `exit`. Changes average (n=10) running time for `/usr/bin/time rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:115 cucumber:boot` from 139.76 seconds to 51.42 seconds (-63.21%).
1 parent f950f30 commit 7a347ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

features/msfconsole/database_yml.feature

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ Feature: `msfconsole` `database.yml`
127127
database: project_metasploit_framework_test
128128
username: project_metasploit_framework_test
129129
"""
130-
When I run `msfconsole --environment test` interactively
131-
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
132-
And I type "exit"
130+
When I run `msfconsole --environment test --execute-command exit`
133131
Then the output should contain "project_metasploit_framework_test"
134132

135133

0 commit comments

Comments
 (0)