"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
parent
4eb9a7563a
commit
0e1e5125c6
|
@ -48,9 +48,7 @@ Feature: `msfconsole` `database.yml`
|
|||
database: project_metasploit_framework_test
|
||||
username: project_metasploit_framework_test
|
||||
"""
|
||||
When I run `msfconsole --environment test --yaml command_line.yml` interactively
|
||||
And I wait for stdout to contain "Free Metasploit Pro trial: http://r-7.co/trymsp"
|
||||
And I type "exit"
|
||||
When I run `msfconsole --environment test --execute-command exit --yaml command_line.yml`
|
||||
Then the output should contain "command_line_metasploit_framework_test"
|
||||
|
||||
Scenario: Without --yaml, MSF_DATABASE_CONFIG wins
|
||||
|
|
Loading…
Reference in New Issue