Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable --yes/-y flag for commands requiring confirmation #164

Open
hakamadare opened this issue Nov 20, 2013 · 0 comments
Open

enable --yes/-y flag for commands requiring confirmation #164

hakamadare opened this issue Nov 20, 2013 · 0 comments

Comments

@hakamadare
Copy link
Contributor

building unit tests has revealed that we could really use a --yes or --force flag to facilitate automated testing of the nepho UI.

test_nepho_cloudlet_install (tests.cloudlet_test.a_TestNephoCloudlet) ... ERROR
...
======================================================================
ERROR: test_nepho_cloudlet_install (tests.cloudlet_test.a_TestNephoCloudlet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/huit/python/nepho/nepho/tests/cloudlet_test.py", line 54, in test_nepho_cloudlet_install
    app.run()
  File "/Users/huit/.virtualenvs/nepho/lib/python2.7/site-packages/cement-2.1.4.dev20131029203905-py2.7.egg/cement/core/foundation.py", line 493, in run
    self.controller._dispatch()
  File "/Users/huit/.virtualenvs/nepho/lib/python2.7/site-packages/cement-2.1.4.dev20131029203905-py2.7.egg/cement/core/controller.py", line 448, in _dispatch
    func()
  File "/Users/huit/.virtualenvs/nepho/lib/python2.7/site-packages/cement-2.1.4.dev20131029203905-py2.7.egg/cement/core/controller.py", line 454, in _dispatch
    func()
  File "/Users/huit/python/nepho/nepho/nepho/cli/cloudlet.py", line 160, in install
    self.cloudletManager.new(name, selected_dir, url)
  File "/Users/huit/python/nepho/nepho/nepho/core/cloudlet.py", line 175, in new
    return Cloudlet(name, cloudlet_path, url)
  File "/Users/huit/python/nepho/nepho/nepho/core/cloudlet.py", line 28, in __init__
    self.clone(url)
  File "/Users/huit/python/nepho/nepho/nepho/core/cloudlet.py", line 89, in clone
    exit(1)
  File "/Users/huit/.virtualenvs/nepho/lib/python2.7/site.py", line 403, in __call__
    raise SystemExit(code)
SystemExit: 1
-------------------- >> begin captured stdout << ---------------------
Cloudlet install failed.
'git clone -v https://github.com/cloudlets/nepho-example.git /Users/huit/.nepho/cloudlets/nepho-example' returned exit status 128: fatal: destination path '/Users/huit/.nepho/cloudlets/nepho-example' already exists and is not an empty directory.


--------------------- >> end captured stdout << ----------------------
hakamadare added a commit that referenced this issue Nov 20, 2013
hakamadare added a commit that referenced this issue Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant