Skip to content

Commit 8b88d7b

Browse files
committed
"Without --yaml, MSF_DATABASE_CONFIG wins" --execute-command
MSP-11671 Pass `--execute-command exit` to `msfconsole` instead of running it interactively and typing `exit`. Average (n=10) runtime for `rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:54 cucumber:boot` change from 138.84 seconds to 52.96 seconds (-61.85%).
1 parent 69b170a commit 8b88d7b

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
@@ -82,9 +82,7 @@ Feature: `msfconsole` `database.yml`
8282
database: project_metasploit_framework_test
8383
username: project_metasploit_framework_test
8484
"""
85-
When I run `msfconsole --environment test` interactively
86-
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
87-
And I type "exit"
85+
When I run `msfconsole --environment test --execute-command exit`
8886
Then the output should contain "environment_metasploit_framework_test"
8987

9088
Scenario: Without --yaml or MSF_DATABASE_CONFIG, ~/.msf4/database.yml wins

0 commit comments

Comments
 (0)