tempest/tempest/cmd
Masayuki Igawa f8026418b1 Fix tempest init inconsistency when it fails
This commit fixes an inconsistent behavior when tempest init fails.
For example::

  $ tempest init /foobar
  ERROR tempest [-] [Errno 13] Permission denied: '/foobar'
  $ tempest init /foobar
  A workspace already exists with name: foobar.
  $ tempest workspace list
  +------+------+
  | Name | Path |
  +------+------+
  +------+------+

The error message indicates that the workspace already exists but we
cannot see it with the tempest workspace list command. I think users
might be confused with this behavior.

And this commit also fixes --show-global-config-dir,-s option behavior
as a side effect. The original behavior was registering a current
directory as a workspace when the option was specified. However, I
think users don't expect the behavior.

Change-Id: I04ed102a4ad3c3aa678128f0004eb0ba09a05ea7
2016-09-29 16:40:37 +09:00
..
__init__.py Add cmd entry point for verify_tempest_config 2014-04-30 17:36:12 +00:00
account_generator.py Add operator role to heat stack owner 2016-06-16 10:32:31 +01:00
cleanup.py Remove white space between print and () 2016-07-06 17:44:50 +08:00
cleanup_service.py Remove the wapper method show_quota_usage() 2016-07-29 11:05:21 -07:00
config-generator.tempest.conf Move oslo config generator config inside package 2016-06-22 14:39:42 -04:00
init.py Fix tempest init inconsistency when it fails 2016-09-29 16:40:37 +09:00
list_plugins.py Clean imports in code 2016-08-25 16:11:14 +07:00
main.py Add vcs string to version option output 2016-06-07 15:53:55 +09:00
run.py Fix subunit-trace output with tempest run 2016-09-20 08:33:20 -04:00
run_stress.py Remove unused return value from take_action 2016-06-09 13:20:18 +09:00
subunit_describe_calls.py Merge "Add request/response to subunit-describe-calls" 2016-07-27 22:28:46 +00:00
verify_tempest_config.py Merge "Use ConfigParser instead of SafeConfigParser" 2016-09-28 22:10:06 +00:00
workspace.py Merge "Remove unused LOG" 2016-07-13 11:45:58 +00:00