"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.
bug/bundler_fix
Luke Imhoff 2014-12-03 12:38:43 -06:00
parent 4eb9a7563a
commit 0e1e5125c6
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 1 additions and 3 deletions

View File

@ -48,9 +48,7 @@ Feature: `msfconsole` `database.yml`
database: project_metasploit_framework_test database: project_metasploit_framework_test
username: project_metasploit_framework_test username: project_metasploit_framework_test
""" """
When I run `msfconsole --environment test --yaml command_line.yml` interactively When I run `msfconsole --environment test --execute-command exit --yaml command_line.yml`
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
And I type "exit"
Then the output should contain "command_line_metasploit_framework_test" Then the output should contain "command_line_metasploit_framework_test"
Scenario: Without --yaml, MSF_DATABASE_CONFIG wins Scenario: Without --yaml, MSF_DATABASE_CONFIG wins