Age | Commit message (Collapse) | Author |
|
|
|
This addition walks over any extra arguments provided to the
rake task. If the file is a key file, it is used to set the
BEAKER_keyfile ENVIRONMENT variable for beaker-rspec and/or
the `--keyfile` command line argument for beaker as needed.
Example:
BEAKER_setfile=../vcenterhost.cfg rake beaker:rspec:test[foo,pe,'/home/myuser/.ssh/id_rsa-secret']
|
|
Adjust Rake tasks for testing beaker-rspec suite, beaker suite,
and both in combination.
The beaker hosts config file is set via the BEAKER_setfile
environmental variable. The hosts defined within this file
supersede the host past in as an argument, but the argument is
still required. For an arbitrary hosts config file this provides
the following options.
1. Run the beaker-rspec test suite
BEAKER_setfile=/path/to/my_hosts.cfg rake beaker:rspec:test[foo,pe]
2. Run the beaker test suite
BEAKER_setfile=/path/to/my_hosts.cfg rake beaker:test[foo,pe]
3. Run both beaker-rspec and beaker test suites
BEAKER_setfile=/path/to/my_hosts.cfg rake beaker:test:all[foo,pe]
|
|
|
|
This work gets rid of the provider_example_group and reworks everything
to work properly against rspec2. I don't know if I'd consider the style
"better" but it works.
|
|
|