Skip to content

Commit 0e1e512

Browse files
committed
"With all 4 locations, --yaml wins" --execute-command
MSP-11671 Use `--execute-command` instead of interactly running msfconsole and typing `exit`. Changes the average runtime for `rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:13 cucumber:boot` from 141.93 seconds (n=10) to 51.78 seconds (n=10) for a -63.52% change. Raw data: https://docs.google.com/spreadsheets/d/1vCRi_38Go3Wfq670eDCXMTSSXL1blSbk6NQsgpOqfYw/edit?usp=sharing.
1 parent 4eb9a75 commit 0e1e512

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
@@ -48,9 +48,7 @@ Feature: `msfconsole` `database.yml`
4848
database: project_metasploit_framework_test
4949
username: project_metasploit_framework_test
5050
"""
51-
When I run `msfconsole --environment test --yaml command_line.yml` interactively
52-
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
53-
And I type "exit"
51+
When I run `msfconsole --environment test --execute-command exit --yaml command_line.yml`
5452
Then the output should contain "command_line_metasploit_framework_test"
5553

5654
Scenario: Without --yaml, MSF_DATABASE_CONFIG wins

0 commit comments

Comments
 (0)